Skip to content

Commit 8bc3c82

Browse files
cw789José Valim
authored andcommitted
Fix redirection to null on windows (#9130)
Concerning generated `bin/release.bat` from `mix release`.
1 parent 7a3d6ec commit 8bc3c82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mix/lib/mix/tasks/release.init.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ defmodule Mix.Tasks.Release.Init do
270270
)
271271
272272
if not "!REL_GOTO!" == "" (
273-
findstr "RUNTIME_CONFIG=true" "!RELEASE_SYS_CONFIG!.config" >nil 2>&1 && (
273+
findstr "RUNTIME_CONFIG=true" "!RELEASE_SYS_CONFIG!.config" >nul 2>&1 && (
274274
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
275275
set RELEASE_SYS_CONFIG=!RELEASE_TMP!\!RELEASE_NAME!-!RELEASE_VSN!-!TIMESTAMP:~0,11!-!RANDOM!.runtime
276-
mkdir "!RELEASE_TMP!" >nil
277-
copy /y "!REL_VSN_DIR!\sys.config" "!RELEASE_SYS_CONFIG!.config" >nil || (
276+
mkdir "!RELEASE_TMP!" >nul
277+
copy /y "!REL_VSN_DIR!\sys.config" "!RELEASE_SYS_CONFIG!.config" >nul || (
278278
echo Cannot start release because it could not write to "!RELEASE_SYS_CONFIG!.config"
279279
goto end
280280
)

0 commit comments

Comments
 (0)