Commits

Swyter committed 4458a24

*Ensure the 7z is there before even attempting to extract it.

  • Participants
  • Parent commits 0dd6fbf

Comments (0)

Files changed (1)

File _getlatest.cmd

 	echo [x] Downloading ISO
 	wget http://iso.reactos.org/bootcd/bootcd-%revNumber%-dbg.7z --no-clobber
 
-	echo [x] Extracting it
-	7z x bootcd-%revNumber%-dbg.7z -y
-	
-	if %ERRORLEVEL% LEQ 1 (
-		echo [x] Cleaning up...
-		del bootcd-%revNumber%-dbg.7z /F
-	)
+  if exist bootcd-%revNumber%-dbg.7z (
+    echo [x] Extracting it
+    7z x bootcd-%revNumber%-dbg.7z -y
+    
+    if %ERRORLEVEL% LEQ 1 (
+      echo [x] Cleaning up...
+      del bootcd-%revNumber%-dbg.7z /F
+    )
+  ) else (
+    echo ^|   7z not downloaded... bad luck, wait a bit...
+  )
 	
 ) else (
 	echo ^|   ISO already there...