From d6fc93a4b51e83adf6aeb8b6eb8c573875dcfd55 Mon Sep 17 00:00:00 2001
From: Peter Squicciarini <stripedpajamas273@gmail.com>
Date: Fri, 12 Apr 2019 16:40:21 -0700
Subject: [PATCH] Update check for Mac artifact

---
 check_tags.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_tags.sh b/check_tags.sh
index c273848..680cd65 100755
--- a/check_tags.sh
+++ b/check_tags.sh
@@ -10,7 +10,7 @@ echo "VSCodium assets: ${VSCODIUM_ASSETS}"
 if [ "$GITHUB_TOKEN" != "" ]; then
   if [ "$VSCODIUM_ASSETS" != "null" ]; then
     if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
-      HAVE_MAC=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["zip"])')
+      HAVE_MAC=$(echo $VSCODIUM_ASSETS | jq --arg suffix "darwin-$LATEST_MS_TAG.zip" 'map(.name) | contains([$suffix])')
       if [[ "$HAVE_MAC" != "true" ]]; then
         echo "Building on Mac because we have no ZIP"
         export SHOULD_BUILD="yes"