commit 237b3961234382b8d84b970d0165d795d5622a09 parent 02b4b6d83b63577e8d649994cd4a0dae7f909bf5 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Mon, 16 Jul 2018 19:25:33 +0200 Fixed some issues in updatemaster Diffstat:
M | bin/updatemaster | | | 18 | +++++++++++++----- |
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/bin/updatemaster b/bin/updatemaster @@ -113,7 +113,7 @@ if command -v brew &> /dev/null; then brew cask outdated --greedy; notify "Cask: Finished reading updates" "Click to view outdated casks." if [ $all_casks = 1 ] || [ $all = 1 ]; then - brew cask upgrade --gredy + brew cask upgrade --greedy elif [ $select_casks = 1 ]; then read -p "Casks to upgrade (empty string cancels upgrade): " -a CASKS; for i in ${CASKS[@]}; do @@ -203,7 +203,7 @@ if command -v pip3 list &> /dev/null; then pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U notify "Pip3 Update Finished" "See Terminal for info." else - echo -e "\nCannot upgrade pip3 packages. Please do so manully." + echo -e "\nCannot upgrade pip3 packages. Please do so manually." fi ### PIP ### @@ -212,17 +212,25 @@ if command -v pip list &> /dev/null; then if pip freeze; then pip freeze — local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U else - echo -e "Cannot upgrade pip packages. Please do so manully." + echo -e "Cannot upgrade pip packages. Please do so manually." fi notify "Pip Update Finished" "See Terminal for info." else - echo -e "Cannot upgrade pip packages. Please do so manully." + echo -e "Cannot upgrade pip packages. Please do so manually." +fi + +### SUDO PIP ### +echo -e "\n-- Global pip." +if command -v sudo pip list &> /dev/null; then + sudo pip freeze | grep -v '^\-e' | cut -d = -f 1 | xargs sudo pip install -U +else + echo -e "Cannot upgrade global pip packages. Please do so manually." fi ### TLDR Database ### if command -v tldr &> /dev/null; then echo -e "\n-- TLDR database update" - tldr -u + tldr --update echo "Exit code: $?" fi