From 769cff23fd22ff89c804bab68932bc236b1574fa Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 2 Nov 2018 23:38:10 -0400 Subject: [PATCH] fix: wrap script_bin in double-quotes Refs #3259 --- plugins/00_dokku-standard/exec-app-json-scripts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/00_dokku-standard/exec-app-json-scripts b/plugins/00_dokku-standard/exec-app-json-scripts index bf07adaa6..0f222bc2a 100755 --- a/plugins/00_dokku-standard/exec-app-json-scripts +++ b/plugins/00_dokku-standard/exec-app-json-scripts @@ -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 "