From d39f177eb3484893b68650fabd4b674c572ae58e Mon Sep 17 00:00:00 2001 From: Jonny007-MKD Date: Sat, 17 Oct 2020 07:20:26 +0200 Subject: [PATCH] Fix bc installation check --- check_rpi_temperature.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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