mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🚨 Remove unused vars
This commit is contained in:
parent
7bde8fa7e6
commit
58f9fbcc8c
2 changed files with 0 additions and 27 deletions
|
@ -130,7 +130,6 @@ popd
|
|||
|
||||
echo "==> 🧪 Updating homebrew-core formula mas (${MAS_VERSION}, ${REVISION})"
|
||||
|
||||
|
||||
echo "Validating formula"
|
||||
brew bump-formula-pr \
|
||||
--tag="${MAS_VERSION}" \
|
||||
|
|
|
@ -7,12 +7,6 @@
|
|||
# https://github.com/mas-cli/homebrew-tap/blob/main/Formula/mas.rb
|
||||
#
|
||||
|
||||
MAS_TAP_PATH="$(brew --repository mas-cli/tap)"
|
||||
MAS_TAP_FORMULA_FILE="${MAS_TAP_PATH}/Formula/mas.rb"
|
||||
|
||||
PROJECT_PATH="$(git rev-parse --show-toplevel)"
|
||||
LOCAL_TAP_FORMULA_PATH="${PROJECT_PATH}/Homebrew/mas-tap.rb"
|
||||
|
||||
function usage {
|
||||
echo "Usage: brew_tap_update [-d] v0.0 [sha1_hash]"
|
||||
echo " -d option enables dry run mode"
|
||||
|
@ -26,26 +20,6 @@ if [[ $# -gt 3 ]]; then
|
|||
usage 1>&2
|
||||
fi
|
||||
|
||||
echo=''
|
||||
|
||||
# Detect presence of `-d` dry run option
|
||||
while getopts "d" o; do
|
||||
case "${o}" in
|
||||
d)
|
||||
echo='echo (DRY-RUN):'
|
||||
;;
|
||||
*)
|
||||
usage 1>&2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# DRY_RUN environment variable
|
||||
# shellcheck disable=SC2153
|
||||
if [[ $DRY_RUN == 'true' ]]; then
|
||||
echo='echo (DRY-RUN):'
|
||||
fi
|
||||
|
||||
# arg 1 - version tag
|
||||
if [[ -n "${1}" ]]; then
|
||||
MAS_VERSION="${1}"
|
||||
|
|
Loading…
Reference in a new issue