mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
Update utils.py to get_cli_input Line 192
Changed sys.stdin.readline().strip() to sys.stdin.read().strip() to allow multiple line input.
This commit is contained in:
parent
308982f62d
commit
e998099024
@ -189,7 +189,7 @@ class Standalone:
|
|||||||
system = platform.system()
|
system = platform.system()
|
||||||
if system == 'Windows':
|
if system == 'Windows':
|
||||||
if not sys.stdin.isatty(): # Check if input is being piped
|
if not sys.stdin.isatty(): # Check if input is being piped
|
||||||
return sys.stdin.readline().strip() # Read piped input
|
return sys.stdin.read().strip() # Read piped input
|
||||||
else:
|
else:
|
||||||
return input("Enter Question: ") # Prompt user for input from console
|
return input("Enter Question: ") # Prompt user for input from console
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user