Skip to content

Commit 772ba60

Browse files
committed
Fix commandToExecute assignment
1 parent d3b299c commit 772ba60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

misc/run-command-shim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ bin="$(readlink -f "$SCRIPT_DIR/$HANDLER_BIN")"
3535
cmd="$1"
3636

3737
# For commands other than 'enable', execute the handler process as a child process
38-
commandToExecute = "${bin} ${cmd}"
38+
commandToExecute="$bin $cmd"
3939

4040
if [[ "$cmd" == "enable" ]]; then
4141
# for 'enable' command, double fork
4242
# to detach from the handler process tree to avoid getting terminated
4343
# after the 15-minute extension enabling timeout.
4444
# & will execute the binary on the background and will not block current shell execution
45-
commandToExecute = "nohup ${bin} ${cmd} &"
45+
commandToExecute="nohup $bin $cmd &"
4646
fi
4747

4848
### Retry logic to acquire lock and execute the command

0 commit comments

Comments
 (0)