Skip to content

Commit f837be7

Browse files
committed
Merge branch 'druck13-issue#34'
2 parents e023050 + c50f941 commit f837be7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/install-service.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ SERVICE_PATH=/etc/systemd/system/pimoroni-fanshim.service
1919

2020
USAGE="sudo ./install-service.sh --off-threshold <n> --on-threshold <n> --delay <n> --brightness <n> (--preempt) (--noled) (--nobutton)"
2121

22-
if ! [ -f "/usr/bin/python3" ]; then
22+
if ! ( type -P python3 > /dev/null ) ; then
2323
printf "Fan SHIM controller requires Python 3\n"
2424
printf "You should run: 'sudo apt install python3'\n"
2525
exit 1
2626
fi
2727

28-
if ! [ -f "/usr/bin/pip3" ]; then
28+
if ! ( type -P pip3 > /dev/null ) ; then
2929
printf "Fan SHIM controller requires Python 3 pip\n"
3030
printf "You should run: 'sudo apt install python3-pip'\n"
3131
exit 1

0 commit comments

Comments
 (0)