Skip to content

Commit 8c5e7d3

Browse files
committed
Prepare for removal of some files
1 parent e34372f commit 8c5e7d3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sign-pkg-mac/sign.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ function signloop() {
7272
# we pass the executable to sign as the last argument
7373
# shellcheck disable=SC1083
7474
eval exe=\${$#}
75+
76+
# If the file does not exist, skip signing it
77+
# llplugin and slvoice might be not present
78+
if [[ ! -e "$exe" ]]; then
79+
echo "signloop: file '$exe' does not exist, skipping." >&2
80+
return 0
81+
fi
82+
7583
exe="$(basename "$exe")"
7684
retry_loop "$exe signing" $retries $signwait /usr/bin/codesign "$@"
7785
}

0 commit comments

Comments
 (0)