Merge pull request #3299 from dokku/josegonzalez-patch-1

fix: wrap script_bin in double-quotes
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-02 02:46:45 -05:00
committed by GitHub

View File

@@ -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 "