🚨 Remove unused dry_run variable from brew_tap_update script

This commit is contained in:
Ben Chatelain 2024-03-31 10:51:46 -06:00
parent 28dcc76ec1
commit 87fd066403
No known key found for this signature in database

View file

@ -26,28 +26,24 @@ if [[ $# -gt 3 ]]; then
usage 1>&2
fi
echo=''
dry_run=''
echo='echo'
# Detect presence of `-d` dry run option
while getopts "d" o; do
case "${o}" in
d)
echo='echo (DRY-RUN):'
dry_run='-d'
;;
*)
usage 1>&2
;;
esac
done
shift $((OPTIND-1))
# DRY_RUN environment variable
# shellcheck disable=SC2153
if [[ $DRY_RUN == 'true' ]]; then
echo='echo (DRY-RUN):'
dry_run='-d'
fi
# arg 1 - version tag