From 939dab1bc07dbb33f67692c5d648f50c095c3f5d Mon Sep 17 00:00:00 2001 From: Felix The Hammer Gallo Date: Mon, 13 Oct 2014 17:37:34 +0000 Subject: fix bug in path script --- priv/templates/extended_bin.dtl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'priv') diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index bca90f3..06b2ba5 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -55,10 +55,10 @@ relx_nodetool() { # Run an escript in the node's environment relx_escript() { - command="$1"; shift + shift; scriptpath="$1" export RELEASE_ROOT_DIR - "$ERTS_DIR/bin/escript" "$ROOTDIR/$command" $@ + "$ERTS_DIR/bin/escript" "$ROOTDIR/$scriptpath" $@ } # Output a start command for the last argument of run_erl relx_start_command() { -- cgit v1.2.3 From 9193aa29169f117f2e1ba4536a718da2f02c2b63 Mon Sep 17 00:00:00 2001 From: Felix The Hammer Gallo Date: Mon, 13 Oct 2014 17:52:55 +0000 Subject: remove script path from passed arguments list --- priv/templates/extended_bin.dtl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'priv') diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index 06b2ba5..c4d5bbf 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -55,7 +55,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" $@ -- cgit v1.2.3