fix: wrap script binary in single quotes during executable check
Refs #3259 [ci skip]
This commit is contained in:
committed by
GitHub
parent
e16a7b5fe3
commit
1c24585093
@@ -47,7 +47,7 @@ execute_script() {
|
||||
|
||||
if [[ "$SCRIPT_CMD" == /* ]]; then
|
||||
local SCRIPT_BIN="$(echo "$SCRIPT_CMD" | cut -d' ' -f1)"
|
||||
COMMAND+=" if [[ ! -x $SCRIPT_BIN ]]; then "
|
||||
COMMAND+=" if [[ ! -x '$SCRIPT_BIN' ]]; then "
|
||||
COMMAND+=" echo specified binary is not executable ; "
|
||||
COMMAND+=" exit 1 ; "
|
||||
COMMAND+=" fi "
|
||||
|
||||
Reference in New Issue
Block a user