dotfiles

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

commit 990270995cc00dd1745f8b5306d6417e7105bd29
parent d54d78952592add2b287c890c57c272ba5e681f4
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri, 10 May 2019 11:52:07 +0200

updatemaster: flags

Former-commit-id: ba6f37d2e769c0bb9d935dbdb4166da079de1aaa
Diffstat:
Mscripts/updatemaster | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/updatemaster b/scripts/updatemaster @@ -30,7 +30,7 @@ hr() { echo_progress "### STARTING UPDATE SCRIPT ###\n" # Parse options/arguments {{{ -while getopts "hfcms" opt; do +while getopts "hfcns" opt; do case "$opt" in c) casks=1 @@ -41,7 +41,7 @@ while getopts "hfcms" opt; do s) select_casks=1 ;; - m) + n) maintenance=1 ;; h|*) @@ -51,6 +51,7 @@ while getopts "hfcms" opt; do echo "-c: Upgrade all casks, without prompting." echo "-f: Upgrade all formulas, without prompting." echo "-s: Select which casks to upgrade." + echo "-n: Don't upgrade anything" echo "-h: Show this help text." echo echo "Options can be combined. For example:" @@ -83,7 +84,8 @@ if command -v brew &> /dev/null; then echo # Programs {{{ - if [ $casks = 0 ] && [ $formulas = 0 ] && [ $select_casks = 0 ]; then + if [ $formulas = 0 ] && [ $select_casks = 0 ] && [ ${#outdated} -ne 0 ]; then + brew outdated echo_succ "No programs will be updated." elif [ ${#outdated} = 0 ]; then echo -e "No programs to update."