commit 9890573b6c1071a1aba670b22dff2333a3b63140
parent 90a1410ec13e4cf91662f24deb357a7f2d8da867
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 15 May 2019 11:51:24 +0200
updatemaster: bugfixing
Former-commit-id: 8df1d9723e5fa73d00369671ab2e901bd0e3699f
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/updatemaster b/scripts/updatemaster
@@ -84,7 +84,7 @@ if command -v brew &> /dev/null; then
echo
# Programs {{{
- if [ $formulas = 0 ] && [ $select_casks = 0 ] && [ ${#outdated} -ne 0 ]; then
+ if [ $formulas = 0 ] && [ ${#outdated} -ne 0 ]; then
brew outdated
echo_succ "No programs will be updated."
elif [ ${#outdated} = 0 ]; then
@@ -102,7 +102,7 @@ if command -v brew &> /dev/null; then
# Casks {{{
if [ ${#outdated_c} = 0 ]; then
echo_succ "No casks to update."
- elif [ $casks = 0 ] && [ $select_casks = 1 ]; then
+ elif [ $casks = 0 ] && [ $select_casks = 0 ]; then
echo_succ "No casks will be updated."
else
echo -e "Casks to update:"
@@ -113,7 +113,7 @@ if command -v brew &> /dev/null; then
brew cask upgrade --greedy
elif [ $select_casks = 1 ]; then
read -rp "Casks to upgrade (empty string cancels upgrade): " -a CASKS;
- for i in "{CASKS[@]}"; do
+ for i in ${CASKS[@]}; do
if ! brew cask upgrade "$i"; then echo -e "Could not upgrade cask $i."; fi
done
else
@@ -147,7 +147,7 @@ if command -v brew &> /dev/null; then
brew missing;
echo "Homebrew cache disk usage:"
- du -h "$(brew --cache)"
+ du -skh "$(brew --cache)"
echo "Remove with:"
# shellcheck disable=SC2016
echo ' rm -rf $(brew --cache)'