From 328cf0c94ee7e4890e1a9dcea829bf330621c6f0 Mon Sep 17 00:00:00 2001 From: dece Date: Tue, 29 Mar 2022 15:02:47 +0200 Subject: [PATCH] update-manually-installed-software: fix pip crash --- update-manually-installed-software.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/update-manually-installed-software.sh b/update-manually-installed-software.sh index 4cb7626..fe4e17f 100755 --- a/update-manually-installed-software.sh +++ b/update-manually-installed-software.sh @@ -31,10 +31,14 @@ check_cheat() { check_python_packages() { echo "# Python user packages" - pip3 list -o --user + # For some reason different order of arguments makes pip crash on some + # systems… Not going to bother here. + pip3 list --user -o 2> /dev/null \ + || pip3 list -o --user 2> /dev/null \ + || echo "Failure…" } (( $+commands[nvim] )) && check_neovim (( $+commands[alacritty] )) && check_alacritty (( $+commands[cheat] )) && check_cheat -check_python_packages +(( $+commands[pip3] )) && check_python_packages