Skip to content

Commit 6cd9cb9

Browse files
authored
Merge pull request #50 from mdrocan/pip_fix_hw
fix proposal for hw check
2 parents 067be75 + 2553095 commit 6cd9cb9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pip_check.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/sh
22

33
scriptname=$0
4-
pip3=$(find "/opt/homebrew/opt/[email protected]/bin" -iname pip3.11)
4+
5+
hw=$(uname -m)
6+
if [ "$hw" = x86_64 ]; then
7+
pip3=$(find "/usr/local/bin/" -iname pip3.11)
8+
elif [ "$hw" = arm64 ]; then
9+
pip3=$(find "/opt/homebrew/opt/[email protected]/bin" -iname pip3.11)
10+
else
11+
exit 1
12+
fi
513
available_packages=$($pip3 list -o)
614

715
pip3_package_list() {

0 commit comments

Comments
 (0)