Skip to content

Commit 4b06a2d

Browse files
author
José Valim
committed
Merge pull request #1293 from ToJans/WindowsBugfixing
Updated elixir.bat so one can also pass in non ".ex" files
2 parents 9e6b650 + 00299fe commit 4b06a2d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bin/elixir.bat

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ for /f "usebackq" %%m in (`echo %par%^|findstr \--remsh`) do (
110110
shift
111111
goto:startloop
112112
)
113-
rem ******* elixir file **********************
114-
for /f "usebackq" %%m in (`echo %par%^|findstr \.ex`) do (
115-
goto:run
116-
)
117-
REM Others should give a problem
118-
echo ERROR: Parameter %par% is not allowed before the .ex file
119-
exit /B -1
113+
rem ******* assume all pre-params are parsed ********************
120114
:run
121115
erl -env ERL_LIBS %ERL_LIBS%;"%originPath%\..\lib" -noshell %ELIXIR_ERL_OPTS% %parsErlang% -s elixir start_cli %beforeExtra% -extra %*

0 commit comments

Comments
 (0)