Fix bc installation check

This commit is contained in:
Jonny007-MKD 2020-10-17 07:20:26 +02:00
parent 4bc4fd5c07
commit d39f177eb3

View file

@ -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