1
0
Fork 0
forked from ahurac/dotfiles

Pas besoin de pip

This commit is contained in:
Hippolyte Chauvin 2023-04-13 00:59:16 +02:00
parent d1b53c92ed
commit 284147bdbd

View file

@ -1,13 +0,0 @@
# Gathering the outdated packages list
echo "Gathering the outdated packages list..."
py_pkglist=$(pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d '=' -f 1)
# Updating
if [ ! -z "$py_pkglist" ]; then
echo $py_pkglist | xargs -n 1 pip3 install -U
else
echo "All packages are up to date."
fi
# Unsetting the variable
unset py_pkglist