🔨 Fix core tap detection

This commit is contained in:
Ben Chatelain 2024-03-09 10:36:27 -07:00
parent 1d046268a6
commit d932b8c294
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -47,11 +47,11 @@ echo "REVISION: $REVISION"
export HOMEBREW_NO_INSTALL_FROM_API=1 export HOMEBREW_NO_INSTALL_FROM_API=1
# Ensure core is tapped # Ensure core is tapped
if test -d "${CORE_TAP_PATH}"; then if ! test -d "${CORE_TAP_PATH}"; then
brew tap homebrew/core brew tap homebrew/core
fi fi
if test ! -f "${MAS_FORMULA_PATH}"; then if ! test -f "${MAS_FORMULA_PATH}"; then
brew install mas brew install mas
fi fi

View file

@ -12,7 +12,7 @@
if git describe >/dev/null 2>&1; then if git describe >/dev/null 2>&1; then
MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true) MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true)
else else
MAS_VERSION=0.0.0 MAS_VERSION=1.0.0
fi fi
MAS_VERSION=${MAS_VERSION#v} MAS_VERSION=${MAS_VERSION#v}
echo "${MAS_VERSION}" echo "${MAS_VERSION}"