mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🔨 Fix core tap detection
This commit is contained in:
parent
1d046268a6
commit
d932b8c294
2 changed files with 3 additions and 3 deletions
|
@ -47,11 +47,11 @@ echo "REVISION: $REVISION"
|
|||
export HOMEBREW_NO_INSTALL_FROM_API=1
|
||||
|
||||
# Ensure core is tapped
|
||||
if test -d "${CORE_TAP_PATH}"; then
|
||||
if ! test -d "${CORE_TAP_PATH}"; then
|
||||
brew tap homebrew/core
|
||||
fi
|
||||
|
||||
if test ! -f "${MAS_FORMULA_PATH}"; then
|
||||
if ! test -f "${MAS_FORMULA_PATH}"; then
|
||||
brew install mas
|
||||
fi
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
if git describe >/dev/null 2>&1; then
|
||||
MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true)
|
||||
else
|
||||
MAS_VERSION=0.0.0
|
||||
MAS_VERSION=1.0.0
|
||||
fi
|
||||
MAS_VERSION=${MAS_VERSION#v}
|
||||
echo "${MAS_VERSION}"
|
||||
|
|
Loading…
Reference in a new issue