Match single-quote in bad shell characters

Closes #11
This commit is contained in:
Joshua M. Boniface 2021-05-27 00:31:16 -04:00
parent c49f63aa22
commit 5f5c21d7ff

View file

@ -259,8 +259,8 @@ def setup_remote_command(target_host):
# Parse and re-quote any problematic arguments
for arg in cli_ffmpeg_args:
# Match bad shell characters: * ( ) whitespace
if re.search("[*()\s|\[\]]", arg):
# Match bad shell characters: * ' ( ) whitespace
if re.search("[*'()\s|\[\]]", arg):
rffmpeg_ffmpeg_command.append('"{}"'.format(arg))
else:
rffmpeg_ffmpeg_command.append("{}".format(arg))