Skip to content

Commit 43a666c

Browse files
committed
Improve bash syntax for waiting for notarization
1 parent 89011a1 commit 43a666c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

installer/build-mac-dmg.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,9 @@ echo "Check Notarization Progress... (list recent notarization records)"
8484
xcrun altool --notarization-history 0 -u "[email protected]" -p "@keychain:NOTARIZE_AUTH"
8585

8686
echo "Check Notarization Info (loop until status detected)"
87-
# No errors getting notarization info.
88-
# Date: 2020-07-05 21:22:35 +0000
89-
# Hash: ef939ddefec14d7f0b7fe467c5761cdccab3414425a33c066a5629dd71eff626
90-
# RequestUUID: cc285719-823f-4f0b-8e71-2df4bbbdaf72
91-
# Status: in progress
92-
START=`date +%s`
93-
while [ $(( $(date +%s) - 3600 )) -lt $START ]; do
87+
# Wait up to 60 minutes for notarization status to change
88+
START=$(date +%s)
89+
while [ "$(( "$(date +%s) - 3600" ))" -lt "$START" ]; do
9490
notarize_info=$(xcrun altool --notarization-info "$REQUEST_UUID" -u "[email protected]" -p "@keychain:NOTARIZE_AUTH")
9591
echo "$notarize_info"
9692

0 commit comments

Comments
 (0)