mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🚨 Remove unused dry_run variable from brew_tap_update script
This commit is contained in:
parent
28dcc76ec1
commit
87fd066403
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue