We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e023050 + c50f941 commit f837be7Copy full SHA for f837be7
1 file changed
examples/install-service.sh
@@ -19,13 +19,13 @@ SERVICE_PATH=/etc/systemd/system/pimoroni-fanshim.service
19
20
USAGE="sudo ./install-service.sh --off-threshold <n> --on-threshold <n> --delay <n> --brightness <n> (--preempt) (--noled) (--nobutton)"
21
22
-if ! [ -f "/usr/bin/python3" ]; then
+if ! ( type -P python3 > /dev/null ) ; then
23
printf "Fan SHIM controller requires Python 3\n"
24
printf "You should run: 'sudo apt install python3'\n"
25
exit 1
26
fi
27
28
-if ! [ -f "/usr/bin/pip3" ]; then
+if ! ( type -P pip3 > /dev/null ) ; then
29
printf "Fan SHIM controller requires Python 3 pip\n"
30
printf "You should run: 'sudo apt install python3-pip'\n"
31
0 commit comments