Skip to content

Commit bf270d1

Browse files
chyndmanJosé Valim
authored andcommitted
Prepend -noshell and friends always within Cygwin
Signed-off-by: José Valim <[email protected]>
1 parent 08555f5 commit bf270d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/elixir

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ done
8080

8181
SELF=$(readlink_f "$0")
8282
SCRIPT_PATH=$(dirname "$SELF")
83-
if [ "$MODE" != "iex" ]; then ERL="$ERL -noshell -s elixir start_cli"; fi
83+
84+
if [ "$OSTYPE" = "cygwin" ]; then SCRIPT_PATH=$(cygpath -m $SCRIPT_PATH); fi
85+
if [ "$MODE" != "iex" ]; then ERL="-noshell -s elixir start_cli $ERL"; fi
8486

8587
if [ -z "$ERL_PATH" ]; then
8688
if [ -f "$SCRIPT_PATH/../releases/RELEASES" ] && [ -f "$SCRIPT_PATH/erl" ]; then

0 commit comments

Comments
 (0)