diff options
-rw-r--r-- | evergreen/notary_client_run.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/evergreen/notary_client_run.sh b/evergreen/notary_client_run.sh index 88d2eef53d5..9bd63dbe539 100644 --- a/evergreen/notary_client_run.sh +++ b/evergreen/notary_client_run.sh @@ -19,10 +19,14 @@ if [[ "${push_name}" == "macos"* ]]; then chmod +x ./linux_amd64/macnotary bins=("mongo-binaries.tgz" "mongo-shell.tgz" "mongo-cryptd.tgz" "mh.tgz") for archive in ${bins[@]}; do - TEMP_ARCHIVE="$(mktemp -p $PWD)" - mv "$archive" "$TEMP_ARCHIVE" - ./linux_amd64/macnotary -f "$TEMP_ARCHIVE" -m notarizeAndSign -u https://dev.macos-notary.build.10gen.cc/api -k server -s ${MACOS_NOTARY_TOKEN} -b server.mongodb.com -o "$archive" - rm -f "$TEMP_ARCHIVE" + if [ -f "$archive" ]; then + TEMP_ARCHIVE="$(mktemp -p $PWD)" + mv "$archive" "$TEMP_ARCHIVE" + ./linux_amd64/macnotary -f "$TEMP_ARCHIVE" -m notarizeAndSign -u https://dev.macos-notary.build.10gen.cc/api -k server -s ${MACOS_NOTARY_TOKEN} -b server.mongodb.com -o "$archive" + rm -f "$TEMP_ARCHIVE" + else + echo "Skipping macos notarization for $archive because it doesn't exist." + fi done fi |