Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 8361024

Browse files
committed
Do not produce empty signature files
1 parent d5eb382 commit 8361024

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/notarize.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ OUTPUT="${2:?missing output argument}"
1212
case "$(basename "$FILE")" in
1313
"redskyctl-darwin-amd64.tar.gz")
1414
# If there are no credentials, just produce an empty file (otherwise fall through)
15-
if [ -n "${AC_USERNAME:-}" ] || [ -n "${AC_PASSWORD:-}" ] ; then
16-
touch "${OUTPUT}"
15+
if [ -z "${AC_USERNAME:-}" ] || [ -z "${AC_PASSWORD:-}" ] ; then
16+
echo "Not empty" > "${OUTPUT}"
1717
exit
1818
fi
1919
;;
@@ -24,7 +24,7 @@ case "$(basename "$FILE")" in
2424
;;
2525
*)
2626
# Just create an empty file to upload to the release
27-
touch "${OUTPUT}"
27+
echo "Not empty" > "${OUTPUT}"
2828
exit
2929
;;
3030
esac

0 commit comments

Comments
 (0)