mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Support passing plain arguments to appname start
Currently with default simplenode template, `appname console other_args` will pass ["console", "other_args"] as plain arguments. But `appname start other_args` effectively calls `appname console`. This patch replaces this call with `appname console other_args`.
This commit is contained in:
parent
76a0fdffa7
commit
9da87854f2
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ case "$1" in
|
|||
HEART_COMMAND="$RUNNER_BASE_DIR/bin/$SCRIPT start"
|
||||
export HEART_COMMAND
|
||||
mkdir -p $PIPE_DIR
|
||||
$ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT console" 2>&1
|
||||
shift # remove $1
|
||||
$ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT console $@" 2>&1
|
||||
;;
|
||||
|
||||
stop)
|
||||
|
|
Loading…
Reference in a new issue