Skip to content
Permalink
Browse files
bug fix: inc backups
  • Loading branch information
usmannasir committed May 6, 2020
1 parent 577e142 commit acaf8e80d250b969e189dc342a286950c1b78f88
Showing 1 changed file with 6 additions and 1 deletion.
@@ -190,10 +190,15 @@ def sendCommand(command, user=None):
sock = ret[0]

if user == None:
if command.find('sudo') == -1:

if command.find('export') > -1:
pass
elif command.find('sudo') == -1:
command = 'sudo %s' % (command)

if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(ProcessUtilities.token + command)

sock.sendall((ProcessUtilities.token + command).encode('utf-8'))
else:
command = '%s-u %s %s' % (ProcessUtilities.token, user, command)

0 comments on commit acaf8e8

Please sign in to comment.