Skip to content

Commit eba2123

Browse files
committed
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.
1 parent 3b38dbe commit eba2123

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/build-wine/unsign.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# exit if command fails
4+
set -e
5+
36
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.."
47
CONTRIB="$PROJECT_ROOT/contrib"
58
here=$(dirname "$0")
@@ -8,12 +11,9 @@ cd $here
811

912
if ! which osslsigncode > /dev/null 2>&1; then
1013
echo "Please install osslsigncode"
11-
exit
14+
exit 1
1215
fi
1316

14-
# exit if command fails
15-
set -e
16-
1717
rm -rf signed/stripped
1818
mkdir -p signed >/dev/null 2>&1
1919
mkdir -p signed/stripped >/dev/null 2>&1

0 commit comments

Comments
 (0)