mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +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
|
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
|
||||||
|
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue