aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Favatella <[email protected]>2019-01-16 22:08:27 +0000
committerGitHub <[email protected]>2019-01-16 22:08:27 +0000
commit41284ccc88e89f576309698f1a3691c5e8942b2e (patch)
tree85a5826b774df3eee152cc12414a563273dcf1d2
parentbe987626dce4545bb80e8b833017aad8bf3b1e22 (diff)
downloadrelx-41284ccc88e89f576309698f1a3691c5e8942b2e.tar.gz
relx-41284ccc88e89f576309698f1a3691c5e8942b2e.tar.bz2
relx-41284ccc88e89f576309698f1a3691c5e8942b2e.zip
Enable passing arguments with spaces to extensions
-rwxr-xr-xpriv/templates/extended_bin4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index a228413..6b01b38 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -371,7 +371,7 @@ relx_run_extension() {
shift
# all extension script locations are expected to be
# relative to the start script location
- [ "$SCRIPT_DIR/$EXTENSION_SCRIPT" ] && . "$SCRIPT_DIR/$EXTENSION_SCRIPT" $@
+ [ "$SCRIPT_DIR/$EXTENSION_SCRIPT" ] && . "$SCRIPT_DIR/$EXTENSION_SCRIPT" "$@"
}
# given a list of arguments, identify the internal ones
@@ -791,7 +791,7 @@ case "$1" in
if [ "$IS_EXTENSION" = "1" ]; then
EXTENSION_SCRIPT=$(relx_get_extension_script $1)
shift
- relx_run_extension $EXTENSION_SCRIPT $@
+ relx_run_extension $EXTENSION_SCRIPT "$@"
# all extension scripts are expected to exit
else
relx_usage $1