Wrong variable name

This commit is contained in:
Anton Hvornum 2021-06-02 23:53:13 +02:00
parent 6a0f6b161c
commit abcf3ea88a
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class SysCommandWorker:
if not self.pid:
try:
os.execve(self.cmd[0], self.cmd, {**os.environ, **self.environment_vars})
if storage.arguments.get('debug'):
if storage['arguments'].get('debug'):
log(f"Executing: {self.cmd}", level=logging.DEBUG)
except FileNotFoundError:
log(f"{self.cmd[0]} does not exist.", level=logging.ERROR, fg="red")