Browse Source

Fix up log_append in MinGW download script

It was incorrectly deleting the file
Matt Clarkson 10 years ago
parent
commit
1a04ebe805
1 changed files with 4 additions and 4 deletions
  1. 4 4
      build.cmd

+ 4 - 4
build.cmd

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