aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Rascão <[email protected]>2019-01-22 21:10:45 +0000
committerGitHub <[email protected]>2019-01-22 21:10:45 +0000
commit7332aaf02d8be8e6895a62c4d9537f49e68dac4a (patch)
tree85a5826b774df3eee152cc12414a563273dcf1d2
parentbe987626dce4545bb80e8b833017aad8bf3b1e22 (diff)
parent41284ccc88e89f576309698f1a3691c5e8942b2e (diff)
downloadrelx-7332aaf02d8be8e6895a62c4d9537f49e68dac4a.tar.gz
relx-7332aaf02d8be8e6895a62c4d9537f49e68dac4a.tar.bz2
relx-7332aaf02d8be8e6895a62c4d9537f49e68dac4a.zip
Merge pull request #682 from lucafavatella/extensions-spaces
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