Skip to content

Commit 8a28e22

Browse files
authored
Merge pull request #43 from mdrocan/fix_pip_package_installation
fix for packe installation
2 parents 746f04e + 706fb4e commit 8a28e22

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: CI-check
22

3-
# Controls when the action will run.
43
on:
54
push:
65
branches-ignore:
7-
- master
6+
- master
87

9-
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
119

12-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1310
jobs:
1411
check:
1512
runs-on: ubuntu-latest

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)