Skip to content

Commit

Permalink
Merge pull request #786 from shino/fix-foreground-noshell
Browse files Browse the repository at this point in the history
Fix foreground subcommand with shell/input
  • Loading branch information
tsloughter authored Apr 22, 2020
2 parents ac5bb88 + dc37f49 commit 597d040
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ case "$1" in
export PROGNAME

# Dump environment info for logging purposes
echo "Exec: $BINDIR/erlexec" "$FOREGROUNDOPTIONS" \
# shellcheck disable=SC2086
echo "Exec: $BINDIR/erlexec" $FOREGROUNDOPTIONS \
-boot "$BOOTFILE" -mode "$CODE_LOADING_MODE" \
-boot_var SYSTEM_LIB_DIR "$SYSTEM_LIB_DIR" \
-config "$RELX_CONFIG_PATH" \
Expand All @@ -857,7 +858,9 @@ case "$1" in

relx_run_hooks "$PRE_START_HOOKS"
# Start the VM
exec "$BINDIR/erlexec" "$FOREGROUNDOPTIONS" \
# The variabre FOREGROUNDOPTIONS must NOT be quoted.
# shellcheck disable=SC2086
exec "$BINDIR/erlexec" $FOREGROUNDOPTIONS \
-boot "$BOOTFILE" -mode "$CODE_LOADING_MODE" \
-boot_var SYSTEM_LIB_DIR "$SYSTEM_LIB_DIR" \
-config "$RELX_CONFIG_PATH" \
Expand Down

0 comments on commit 597d040

Please sign in to comment.