We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5841386 commit 0e88738Copy full SHA for 0e88738
1 file changed
examples/install-service.sh
@@ -14,13 +14,13 @@ OLD_HYSTERESIS=""
14
15
SERVICE_PATH=/etc/systemd/system/pimoroni-fanshim.service
16
17
-if ! [ -f "/usr/bin/python3" ]; then
+if ! ( type -P python3 > /dev/null ) ; then
18
printf "Fan SHIM controller requires Python 3\n"
19
printf "You should run: 'sudo apt install python3'\n"
20
exit 1
21
fi
22
23
-if ! [ -f "/usr/bin/pip3" ]; then
+if ! ( type -P pip3 > /dev/null ) ; then
24
printf "Fan SHIM controller requires Python 3 pip\n"
25
printf "You should run: 'sudo apt install python3-pip'\n"
26
0 commit comments