This commit is contained in:
parent
64328c79b1
commit
ac055c932e
@ -164,7 +164,7 @@ def run_commands(commands):
|
|||||||
if not command:
|
if not command:
|
||||||
continue
|
continue
|
||||||
# Remove bash/sh wrapping
|
# Remove bash/sh wrapping
|
||||||
command = command.removeprefix('bash -c').removeprefix('sh -c')
|
command = command.removeprefix('bash -c').removeprefix('sh -c').removeprefix(' ')
|
||||||
# Remove quotes surrounding the command
|
# Remove quotes surrounding the command
|
||||||
if (len(command) >= 2 and command[0] == command[-1] and (command[0] == "'" or command[0] == '"')):
|
if (len(command) >= 2 and command[0] == command[-1] and (command[0] == "'" or command[0] == '"')):
|
||||||
command = command[1:-1]
|
command = command[1:-1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user