commit 1ffff0c86235fede67e84107d4e97b52b1068781
parent f82a0562fcfd489dc5b2b220698ada9b0bb03d1a
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Thu, 6 Aug 2015 20:37:03 +0200
Using $(..) instead of legacy `..`
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ansiweather b/ansiweather
@@ -44,6 +44,7 @@ fetch_cmd=$(get_config "fetch_cmd" || echo "curl -s")
jqpath="`which jq`"
if [ "$jqpath" == "" ]
+jqpath=$(which jq)
then
echo "ERROR : Cannot find jq binary"
exit
@@ -51,6 +52,7 @@ fi
bcpath="`which bc`"
if [ "$bcpath" == "" ]
+bcpath=$(which bc)
then
echo "ERROR : Cannot find bc binary"
exit