From eba21231c9b70094a2987622eda3fa1f2fc87865 Mon Sep 17 00:00:00 2001 From: f321x Date: Mon, 16 Jun 2025 12:55:00 +0200 Subject: [PATCH] fix: build-wine/unsign.sh fail if osslsigncode is missing If osslsigncode is missing `build-wine/unsign.sh` fails silently with status code 0 causing the `release.sh` script to interpret the result as valid and skipping the actual comparison of the windows binaries. --- contrib/build-wine/unsign.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/build-wine/unsign.sh b/contrib/build-wine/unsign.sh index ec7ca1094..380c6baa7 100755 --- a/contrib/build-wine/unsign.sh +++ b/contrib/build-wine/unsign.sh @@ -1,5 +1,8 @@ #!/bin/bash +# exit if command fails +set -e + PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.." CONTRIB="$PROJECT_ROOT/contrib" here=$(dirname "$0") @@ -8,12 +11,9 @@ cd $here if ! which osslsigncode > /dev/null 2>&1; then echo "Please install osslsigncode" - exit + exit 1 fi -# exit if command fails -set -e - rm -rf signed/stripped mkdir -p signed >/dev/null 2>&1 mkdir -p signed/stripped >/dev/null 2>&1