diff options
author | Tino Breddin <[email protected]> | 2019-02-07 16:39:54 +0100 |
---|---|---|
committer | Tino Breddin <[email protected]> | 2019-02-11 11:01:18 +0100 |
commit | 3e94923d4a5d683faf84094f60e746e024df4ae3 (patch) | |
tree | 7750dc9821c18ad04f1403c2d72f4cf6f72d640a | |
parent | 1ad337c4458bc5188a67b8ccf01ba4684fb6383e (diff) | |
download | relx-3e94923d4a5d683faf84094f60e746e024df4ae3.tar.gz relx-3e94923d4a5d683faf84094f60e746e024df4ae3.tar.bz2 relx-3e94923d4a5d683faf84094f60e746e024df4ae3.zip |
Fix relx_escript
-rwxr-xr-x | priv/templates/extended_bin | 3 |
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 |