From a6fe73ad7280a5a1a6833b677022ce22d08d267f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 25 Feb 2018 18:54:34 +0100 Subject: [PATCH] wine build: "exit 1" on hash/sig failure --- contrib/build-wine/prepare-wine.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/build-wine/prepare-wine.sh b/contrib/build-wine/prepare-wine.sh index 158e72d30..2d9c7e83c 100755 --- a/contrib/build-wine/prepare-wine.sh +++ b/contrib/build-wine/prepare-wine.sh @@ -28,18 +28,18 @@ verify_signature() { return 0 else echo "$out" >&2 - exit 0 + exit 1 fi } verify_hash() { - local file=$1 expected_hash=$2 out= + local file=$1 expected_hash=$2 actual_hash=$(sha256sum $file | awk '{print $1}') if [ "$actual_hash" == "$expected_hash" ]; then return 0 else echo "$file $actual_hash (unexpected hash)" >&2 - exit 0 + exit 1 fi } @@ -117,4 +117,4 @@ cp libusb/MS32/dll/libusb-1.0.dll $WINEPREFIX/drive_c/python$PYTHON_VERSION/ # add dlls needed for pyinstaller: cp $WINEPREFIX/drive_c/python$PYTHON_VERSION/Lib/site-packages/PyQt5/Qt/bin/* $WINEPREFIX/drive_c/python$PYTHON_VERSION/ -echo "Wine is configured. Please run prepare-pyinstaller.sh" +echo "Wine is configured."