aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
diff options
context:
space:
mode:
authorLuis Rascão <[email protected]>2019-02-11 13:55:07 +0000
committerGitHub <[email protected]>2019-02-11 13:55:07 +0000
commitb7a8b7f26355ee42588dc39ed00780e368ffa741 (patch)
tree7750dc9821c18ad04f1403c2d72f4cf6f72d640a /priv/templates/extended_bin
parent651b85192f2013d2b76c34f202435aca8c529a99 (diff)
parent3e94923d4a5d683faf84094f60e746e024df4ae3 (diff)
downloadrelx-b7a8b7f26355ee42588dc39ed00780e368ffa741.tar.gz
relx-b7a8b7f26355ee42588dc39ed00780e368ffa741.tar.bz2
relx-b7a8b7f26355ee42588dc39ed00780e368ffa741.zip
Merge pull request #685 from tolbrino/tb-win32-extended-scripts
Add extension command support for Windows
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