ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit 39e92bf66ec9605b4f99417fcb9a0b7c050b6025
parent 87c74c1557b29a644f15bb9f8bae7f155573320a
Author: er0k <er0k@er0k.net>
Date:   Sun, 22 Aug 2021 18:58:54 -0400

use command -v instead of which

`which` is deprecated in latest debian. for more info see:
https://salsa.debian.org/debian/debianutils/-/blob/5aeca1e3b14c08b5ab92995e91efcc2b3806a639/debian/NEWS#L7-16

Diffstat:
Mansiweather | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -77,14 +77,14 @@ done ###[ Check if bc and jq are installed ]######################################## -jqpath=$(which jq) +jqpath=$(command -v jq) if [ "$jqpath" = "" ] then echo "ERROR: Cannot find jq binary" exit 69 # EX_UNAVAILABLE fi -bcpath=$(which bc) +bcpath=$(command -v bc) if [ "$bcpath" = "" ] then echo "ERROR: Cannot find bc binary"