Skip to content

Commit c394289

Browse files
committed
runcommand: Fix filenames with multiple consecutive spaces in them not loading
By quoting the $COMMAND, we ensure that the literal characters of the command are preserved
1 parent e31c577 commit c394289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scriptmodules/supplementary/runcommand/runcommand.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,11 +1312,11 @@ function launch_command() {
13121312
if [[ "$CONSOLE_OUT" -eq 1 ]]; then
13131313
# turn cursor on
13141314
tput cnorm
1315-
eval $COMMAND </dev/tty 2>>"$LOG"
1315+
eval "$COMMAND" </dev/tty 2>>"$LOG"
13161316
ret=$?
13171317
tput civis
13181318
else
1319-
eval $COMMAND </dev/tty &>>"$LOG"
1319+
eval "$COMMAND" </dev/tty &>>"$LOG"
13201320
ret=$?
13211321
fi
13221322
return $ret

0 commit comments

Comments
 (0)