commit bac665e24ee485592fc199ea05f897dcdc58e720
parent 1ffff0c86235fede67e84107d4e97b52b1068781
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Thu, 6 Aug 2015 20:39:04 +0200
Not using double equals anymore as they are not standard
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/ansiweather b/ansiweather
@@ -42,17 +42,15 @@ fetch_cmd=$(get_config "fetch_cmd" || echo "curl -s")
###[ Check if bc and jq are installed ]#######################################
-jqpath="`which jq`"
-if [ "$jqpath" == "" ]
jqpath=$(which jq)
+if [ "$jqpath" = "" ]
then
echo "ERROR : Cannot find jq binary"
exit
fi
-bcpath="`which bc`"
-if [ "$bcpath" == "" ]
bcpath=$(which bc)
+if [ "$bcpath" = "" ]
then
echo "ERROR : Cannot find bc binary"
exit
@@ -78,6 +76,7 @@ auto_locate() {
ret=$city,$country
if [ "$ret" == "," ]
+ if [ "$ret" = "," ]
then
return 1
else