Skip to content

Commit

Permalink
Remove unused $echo variable.
Browse files Browse the repository at this point in the history
Partial mas-cli#638

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Nov 15, 2024
1 parent e62482c commit 88f2bff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions script/brew_core_update
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ if [[ $# -gt 3 ]]; then
usage 1>&2
fi

echo=''
dry_run=''

# Detect presence of `-d` dry run option
while getopts "d" o; do
case "${o}" in
d)
echo='echo (DRY-RUN):'
dry_run='-d'
;;
*)
Expand All @@ -48,7 +46,6 @@ shift $((OPTIND - 1))
# DRY_RUN environment variable
# shellcheck disable=SC2153
if [[ $DRY_RUN == 'true' ]]; then
echo='echo (DRY-RUN):'
dry_run='-d'
fi

Expand Down Expand Up @@ -156,7 +153,7 @@ pushd "${CORE_TAP_PATH}"

echo "Updating homebrew/core formula with a PR"

$echo brew bump-formula-pr \
brew bump-formula-pr \
--tag="${MAS_VERSION}" \
--revision="${REVISION}" \
--strict \
Expand Down

0 comments on commit 88f2bff

Please sign in to comment.