Skip to content

Commit d5a54ab

Browse files
Merge pull request #260 from codextde/fix/macos-verify-relative
Fix macos-verify.sh for relative paths
2 parents 637c5e4 + fb2ff19 commit d5a54ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/macos-verify.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ signer() {
3939
certificate() {
4040
local dir="$WORK/certs-$RANDOM"
4141
mkdir -p "$dir"
42-
(cd "$dir" && codesign -d --extract-certificates "$1" 2>/dev/null)
43-
local leaf="$dir/codesign0"
42+
codesign -d --extract-certificates="$dir/cert" "$1" 2>/dev/null || true
43+
local leaf="$dir/cert0"
4444
[ -f "$leaf" ] || fail "could not read the signing certificate of $1"
4545
local until
4646
until="$(openssl x509 -inform DER -in "$leaf" -noout -enddate | cut -d= -f2)"

0 commit comments

Comments
 (0)