diff --git a/backupbot.py b/backupbot.py index 5244dfb..c6a4eaa 100755 --- a/backupbot.py +++ b/backupbot.py @@ -164,7 +164,7 @@ def run_commands(commands): if not command: continue # 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 if (len(command) >= 2 and command[0] == command[-1] and (command[0] == "'" or command[0] == '"')): command = command[1:-1]