dotfiles

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

commit e17cecb666f08ba370ba1d314fc43ecfb590d593
parent d11ee582a92f7d9d69e828e13b4c0d674df30e7b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 31 Jul 2019 18:44:28 +0200

updatemaster: fixed up pip

Former-commit-id: 9020d562968b7a55fdfcb9ec80400ffd84db35f8
Diffstat:
Mscripts/updatemaster | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/scripts/updatemaster b/scripts/updatemaster @@ -88,6 +88,7 @@ echo_progress "### STARTING UPDATE SCRIPT ###\n" if [ -z $maintenance ]; then echo "Please enter the administrator password (required for installation/upgrading)." sudo -v + [ $? -eq 0 ] || exit cache_sudo & cache_sudo_pid=$! trap clean_up SIGINT SIGKILL SIGQUIT SIGTERM @@ -218,6 +219,21 @@ fi hr +# Global pip packages {{{ +echo_progress "Pip global upgrade" +if pip &> /dev/null; then + val="$PIP_REQUIRE_VIRTUALENV" + PIP_REQUIRE_VIRTUALENV="" + pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U + PIP_REQUIRE_VIRTUALENV="$val" + echo_succ "Pip packages upgraded." +else + echo_err "Pip not found." +fi +# }}} + +hr + # Global NPM packages {{{ echo_progress "NPM global update/upgrade." if command -v npm &> /dev/null; then