From 58f9fbcc8cb3d4bdee0f396342c4c82fbf5a0b3e Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 3 Nov 2024 12:11:41 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Remove=20unused=20vars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/brew_core_update | 1 - script/brew_tap_update | 26 -------------------------- 2 files changed, 27 deletions(-) diff --git a/script/brew_core_update b/script/brew_core_update index c70c289..af8f46e 100755 --- a/script/brew_core_update +++ b/script/brew_core_update @@ -130,7 +130,6 @@ popd echo "==> 🧪 Updating homebrew-core formula mas (${MAS_VERSION}, ${REVISION})" - echo "Validating formula" brew bump-formula-pr \ --tag="${MAS_VERSION}" \ diff --git a/script/brew_tap_update b/script/brew_tap_update index 31b8c61..6dd7a88 100755 --- a/script/brew_tap_update +++ b/script/brew_tap_update @@ -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}"