From 3c07072fe3fccee18fe1803506db1be18c3459d2 Mon Sep 17 00:00:00 2001 From: st33v Date: Fri, 16 Jun 2017 19:34:58 +1000 Subject: fixed comparison operator from integer to string. --- editpix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editpix.sh') diff --git a/editpix.sh b/editpix.sh index 83caf68..161d97e 100755 --- a/editpix.sh +++ b/editpix.sh @@ -32,7 +32,7 @@ do # Check to see if the pic is too dark (i.e. taken at night) mean=$(identify -format %[mean] ${newpic} | sed s/[.].*//) # echo "mean is $mean" - if [ "${campi}" -eq "lucerne" ] ; then + if [ "${campi}" = "lucerne" ] ; then threshold=6000 # shocking hack to compensate for new cam type fi # Test to see if it is too dark (nighttime) -- cgit v1.3