commit a889fef62f7425eb970717a9bcffa367d648a513 parent 8a811d0a1fc0ee97f049e52786b0f4e98e174477 Author: Anders Damsgaard <andersd@riseup.net> Date: Tue, 7 Nov 2017 07:56:54 -0500 split pip upgrade into separate script Diffstat:
M | links/bin/uu | | | 8 | -------- |
A | links/bin/uu-pip | | | 11 | +++++++++++ |
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/links/bin/uu b/links/bin/uu @@ -30,14 +30,6 @@ cd ~/code/dotfiles && \ #git pull && \ #git submodule sync; git submodule update -echo "## Updating pip" -for PIP in pip pip2 pip3; do - [[ ! "$(type -P $PIP)" ]] && continue - $PIP install --upgrade pip - echo "## Updating $PIP packages" - $PIP freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs $PIP install -U -done - if [[ ! "$(type -P conda)" ]]; then echo "## Upgrading conda packages" conda update --all diff --git a/links/bin/uu-pip b/links/bin/uu-pip @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +echo "## Updating pip" +for PIP in pip pip2 pip3; do + [[ ! "$(type -P $PIP)" ]] && continue + $PIP install --upgrade pip + echo "## Updating $PIP packages" + $PIP freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs $PIP install -U +done +