From 603f2207ef23986dda58f8e263be90c7a238aa2d Mon Sep 17 00:00:00 2001 From: Exynox Date: Mon, 16 Dec 2024 20:07:39 +0200 Subject: [PATCH] Made pack.bat exit on error --- bin/pack/pack.bat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/pack/pack.bat b/bin/pack/pack.bat index 07cefc8c..1dda57ce 100644 --- a/bin/pack/pack.bat +++ b/bin/pack/pack.bat @@ -1,7 +1,14 @@ +@echo off + +setlocal enabledelayedexpansion FOR /d %%i IN ("*") DO ( echo Packing %%i rem "C:\Program Files\7-Zip\7z.exe" a "%%i.zip" ".\%%i\*" -m0=LZMA - rem "C:\Program Files\7-Zip-Zstandard\7za.exe" a "%%i.zip" ".\%%i\*" -m0=Zstd -mx20 + rem "C:\Program Files\7-Zip-Zstandard\7za.exe" a "%%i.zip" ".\%%i\*" -m0=Zstd "C:\Program Files\7-Zip\7z.exe" a "%%i.zip" ".\%%i\*" + if !errorlevel! neq 0 exit /b !errorlevel! + + cls ) +pause \ No newline at end of file