Skip to content

Commit

Permalink
Merge pull request #3288 from dokku/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
Wrap script binary in single quotes during executable check
  • Loading branch information
josegonzalez committed Oct 21, 2018
2 parents e16a7b5 + 1c24585 commit ba4db26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/00_dokku-standard/exec-app-json-scripts
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit ba4db26

Please sign in to comment.