Просмотр исходного кода

Fix up log_append in MinGW download script

It was incorrectly deleting the file
Matt Clarkson 10 лет назад
Родитель
Сommit
1a04ebe805
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      build.cmd

+ 4 - 4
build.cmd

@@ -413,16 +413,16 @@
 :log_append - Appends another file into the current logging file
 :: %1 - the file_path to the file to concatenate
 @setlocal
-@set file_path=%~1
+@set "file_path=%~1"
 @if [%file_path%] == [] exit /b 1
 @call :log 3 "Appending to log: %file_path%"
 @call :iso8601 iso8601
-@set temp_log=%temp%\append-%iso8601%.log
+@set "temp_log=%temp%\append-%iso8601%.log"
 @call :log 4 "Using temp file %temp_log%"
 @type "%log_path%" "%file_path%" > "%temp_log%" 2>nul
 @move /y "%temp_log%" "%log_path%" 1>nul
-@del "%file_path% 2>nul
-@del "%temp_log% 2>nul
+@del "%file_path%" 2>nul
+@del "%temp_log%" 2>nul
 @endlocal
 @goto :eof