Skip to content

Commit acaf8e8

Browse files
committed
bug fix: inc backups
1 parent 577e142 commit acaf8e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plogical/processUtilities.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,15 @@ def sendCommand(command, user=None):
190190
sock = ret[0]
191191

192192
if user == None:
193-
if command.find('sudo') == -1:
193+
194+
if command.find('export') > -1:
195+
pass
196+
elif command.find('sudo') == -1:
194197
command = 'sudo %s' % (command)
198+
195199
if os.path.exists(ProcessUtilities.debugPath):
196200
logging.writeToFile(ProcessUtilities.token + command)
201+
197202
sock.sendall((ProcessUtilities.token + command).encode('utf-8'))
198203
else:
199204
command = '%s-u %s %s' % (ProcessUtilities.token, user, command)

0 commit comments

Comments
 (0)