Fix bc installation check
This commit is contained in:
parent
4bc4fd5c07
commit
d39f177eb3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue