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

Commit

Permalink
Do not produce empty signature files
Browse files Browse the repository at this point in the history
  • Loading branch information
jgustie committed Jul 9, 2020
1 parent d5eb382 commit 8361024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ OUTPUT="${2:?missing output argument}"
case "$(basename "$FILE")" in
"redskyctl-darwin-amd64.tar.gz")
# If there are no credentials, just produce an empty file (otherwise fall through)
if [ -n "${AC_USERNAME:-}" ] || [ -n "${AC_PASSWORD:-}" ] ; then
touch "${OUTPUT}"
if [ -z "${AC_USERNAME:-}" ] || [ -z "${AC_PASSWORD:-}" ] ; then
echo "Not empty" > "${OUTPUT}"
exit
fi
;;
Expand All @@ -24,7 +24,7 @@ case "$(basename "$FILE")" in
;;
*)
# Just create an empty file to upload to the release
touch "${OUTPUT}"
echo "Not empty" > "${OUTPUT}"
exit
;;
esac
Expand Down

0 comments on commit 8361024

Please # to comment.