This commit is contained in:
Miroslav Stampar
2017-07-26 00:54:29 +02:00
parent 0f9c81965b
commit 1745bac0ab
6 changed files with 14 additions and 13 deletions

View File

@@ -80,12 +80,12 @@ class Abstraction(Web, UDF, XP_cmdshell):
if not self.alwaysRetrieveCmdOutput:
message = "do you want to retrieve the command standard "
message += "output? [Y/n/a] "
choice = readInput(message, default='Y')
choice = readInput(message, default='Y').upper()
if choice in ('a', 'A'):
if choice == 'A':
self.alwaysRetrieveCmdOutput = True
if not choice or choice in ('y', 'Y') or self.alwaysRetrieveCmdOutput:
if choice == 'Y' or self.alwaysRetrieveCmdOutput:
output = self.evalCmd(cmd)
if output: