aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-xpriv/templates/extended_bin3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index e5de981..c1b6fff 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -190,7 +190,7 @@ relx_nodetool() {
# Run an escript in the node's environment
relx_escript() {
- shift; scriptpath="$1"; shift
+ scriptpath="$1"; shift
export RELEASE_ROOT_DIR
"$ERTS_DIR/bin/escript" "$ROOTDIR/$scriptpath" $@
@@ -598,6 +598,7 @@ case "$1" in
escript)
## Run an escript under the node's environment
+ shift
if ! relx_escript $@; then
exit 1
fi