diff --git a/check_rpi_temperature.sh b/check_rpi_temperature.sh index 149ee03..66b6ae7 100755 --- a/check_rpi_temperature.sh +++ b/check_rpi_temperature.sh @@ -4,7 +4,8 @@ echoerr() { echo "$@" 1>&2; } -if ! $(command -v bc); then +pathToBc=$(command -v bc) +if [ $? -ne 0 ]; then echoerr Please install bc exit -2 fi