Merge pull request #121 from stripedpajamas/fix-macos-check

Update check for Mac artifact
This commit is contained in:
Peter Squicciarini 2019-04-13 21:18:55 -07:00 committed by GitHub
commit a12f6d7dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ echo "VSCodium assets: ${VSCODIUM_ASSETS}"
if [ "$GITHUB_TOKEN" != "" ]; then if [ "$GITHUB_TOKEN" != "" ]; then
if [ "$VSCODIUM_ASSETS" != "null" ]; then if [ "$VSCODIUM_ASSETS" != "null" ]; then
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; 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 if [[ "$HAVE_MAC" != "true" ]]; then
echo "Building on Mac because we have no ZIP" echo "Building on Mac because we have no ZIP"
export SHOULD_BUILD="yes" export SHOULD_BUILD="yes"