Skip to content

Commit

Permalink
shlex.join
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr authored and Josh5 committed Jun 10, 2024
1 parent d14f498 commit bc97245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unmanic/libs/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import hashlib
import os
import queue
import shlex
import shutil
import subprocess
import threading
Expand Down Expand Up @@ -562,7 +563,7 @@ def __exec_command_subprocess(self, data):
# Log the command for debugging
command_string = exec_command
if isinstance(exec_command, list):
command_string = ' '.join(exec_command)
command_string = shlex.join(exec_command)
self._log("Executing: {}".format(command_string), level='debug')

# Append start of command to worker subprocess stdout
Expand Down

0 comments on commit bc97245

Please sign in to comment.