#962: Fix typo in commit `88fc95a`.
parent
dab4e358d4
commit
8f3a5704d1
|
@ -282,7 +282,7 @@ class OpenGnSysWorker(ServerWorker):
|
||||||
logger.debug('Processing script request')
|
logger.debug('Processing script request')
|
||||||
# Decoding script (Windows scripts need a subprocess call per line)
|
# Decoding script (Windows scripts need a subprocess call per line)
|
||||||
script = urllib.unquote(post_params.get('script').decode('base64')).decode('utf8')
|
script = urllib.unquote(post_params.get('script').decode('base64')).decode('utf8')
|
||||||
if operations.os_type == 'Windoes':
|
if operations.os_type == 'Windows':
|
||||||
script = 'import subprocess; {0}'.format(
|
script = 'import subprocess; {0}'.format(
|
||||||
';'.join(['subprocess.check_output({0},shell=True)'.format(repr(c)) for c in script.split('\n')]))
|
';'.join(['subprocess.check_output({0},shell=True)'.format(repr(c)) for c in script.split('\n')]))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue