Skip to content

Commit 2b1a339

Browse files
committed
fix for packe installation
1 parent 746f04e commit 2b1a339

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pip_check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
scriptname=$0
44
pip3=$(find "/usr/local/bin/" -iname pip3.10)
5-
available_packages=$($pip3 list --outdated)
5+
available_packages=$($pip3 list -o)
66

77
pip3_package_list() {
88
if [ -z "$available_packages" ]; then
99
echo "No updates."
1010
else
11-
$pip3 list --outdated
11+
$pip3 list -o
1212
fi
1313
}
1414

1515
pip3_package_update() {
1616
$pip3 install --upgrade pip
17-
$pip3 list --outdated --format=freeze --no-cache-dir | cut -d = -f 1 | xargs -n1 "$pip3" install -U
17+
$pip3 list -o --no-cache-dir | sed 1,2d | awk '{print $1}'| xargs -n1 "$pip3" install -U
1818
}
1919

2020
#help template

0 commit comments

Comments
 (0)