aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTino Breddin <[email protected]>2019-02-07 16:39:54 +0100
committerTino Breddin <[email protected]>2019-02-11 11:01:18 +0100
commit3e94923d4a5d683faf84094f60e746e024df4ae3 (patch)
tree7750dc9821c18ad04f1403c2d72f4cf6f72d640a
parent1ad337c4458bc5188a67b8ccf01ba4684fb6383e (diff)
downloadrelx-3e94923d4a5d683faf84094f60e746e024df4ae3.tar.gz
relx-3e94923d4a5d683faf84094f60e746e024df4ae3.tar.bz2
relx-3e94923d4a5d683faf84094f60e746e024df4ae3.zip
Fix relx_escript
-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