1
0
Fork 0

update-manually-installed-software: fix pip crash

This commit is contained in:
dece 2022-03-29 15:02:47 +02:00
parent 7af9c89a19
commit 328cf0c94e

View file

@ -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