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:
parent
5e3aef5a42
commit
c0571b1ceb
|
@ -226,8 +226,11 @@ function gitupdate(){
|
|||
}
|
||||
|
||||
function pipupdate(){
|
||||
for pip in pip2 pip2; do
|
||||
$pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U
|
||||
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
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user