1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 03:21:30 +01:00

improve pipupdate() reliablity

This commit is contained in:
bretello 2019-12-07 21:31:14 +01:00
parent 5e3aef5a42
commit c0571b1ceb

View File

@ -226,7 +226,10 @@ function gitupdate(){
} }
function pipupdate(){ function pipupdate(){
for pip in pip2 pip2; do for pip in pip2 pip3; do
if [ -z $pip ]; then
continue
fi
$pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U $pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U
done done
} }