dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit cbb9dca9ccf989ff04f57361f801653342442d5d
parent ba05c65b581b7622aaa57c99483dc826be832f89
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun, 19 May 2019 15:28:21 +0200

updatemaster: usage message

Former-commit-id: 655cc283f95f8adefbab251e1958dbb222acddcd
Diffstat:
Mscripts/updatemaster | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/scripts/updatemaster b/scripts/updatemaster @@ -46,7 +46,7 @@ while getopts "hfcns" opt; do ;; h|*) echo "Update your Homebrew, Mac App Store, NPM, and PIP packages in one place." - echo "Usage: updatemaster [-aAcCfFsh]" + echo "Usage: updatemaster [-cfsnh]" echo "Options:" echo "-c: Upgrade all casks, without prompting." echo "-f: Upgrade all formulas, without prompting." @@ -57,7 +57,7 @@ while getopts "hfcns" opt; do echo "Options can be combined. For example:" echo " updatemaster -fs" echo "Would update all formulas, and ask you to select which casks to upgrade." - exit 0 + exit 0 ;; esac done @@ -86,9 +86,9 @@ if command -v brew &> /dev/null; then # Programs {{{ if [ $formulas = 0 ] && [ ${#outdated} -ne 0 ]; then brew outdated - echo_succ "No programs will be updated." + echo_succ "No programs will be updated." elif [ ${#outdated} = 0 ]; then - echo -e "No programs to update." + echo -e "No programs to update." else echo -e "To update:\n" brew outdated; @@ -101,7 +101,7 @@ if command -v brew &> /dev/null; then # Casks {{{ if [ ${#outdated_c} = 0 ]; then - echo_succ "No casks to update." + echo_succ "No casks to update." elif [ $casks = 0 ] && [ $select_casks = 0 ]; then echo_succ "No casks will be updated." else @@ -115,7 +115,7 @@ if command -v brew &> /dev/null; then read -rp "Casks to upgrade (empty string cancels upgrade): " -a CASKS; for i in ${CASKS[@]}; do if ! brew cask upgrade "$i"; then echo -e "Could not upgrade cask $i."; fi - done + done else if [ $maintenance = 0 ]; then read -rsn 1 -p "Upgrade all? [Y(es)/n(o)/s(elect)] " CONF @@ -126,12 +126,12 @@ if command -v brew &> /dev/null; then read -rp "Which casks would you like to upgrade? " -a CASKS; for i in "${CASKS[@]}"; do if ! brew cask upgrade "$i"; then echo -e "Could not upgrade cask $i."; fi - done + done ;; [Yy] | [Yy]es ) echo -e "\nContinuing with cask upgrade." brew cask upgrade --greedy; - ;; + ;; * ) echo -e "\nCancelled cask upgrade." ;;