From 48c76565bb1b025f3e9829d0caa65a2ad599feee Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 1 Nov 2025 20:36:29 +0300 Subject: [PATCH] better error handling --- prepare.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/prepare.sh b/prepare.sh index 445697f..303cc90 100755 --- a/prepare.sh +++ b/prepare.sh @@ -35,7 +35,15 @@ rm wine-10.17-amd64-wow64.tar.xz # Download Visual C++ Redistributable Runtimes echo Downloading Visual C++ Redistributable Runtimes... curl -LO https://uk1-dl.techpowerup.com/files/qpMrHvhJCaISg-CxO9bnTg/1761969558/Visual-C-Runtimes-All-in-One-Jul-2025.zip -mv Visual-C-Runtimes-All-in-One-Jul-2025.zip ./assets/vcr.zip +VCR_FILE="Visual-C-Runtimes-All-in-One-Jul-2025.zip" + +if head -c 512 "$VCR_FILE" | grep -q -i -E "(|