From 4ed79f2fc665273b109efbcd7defd55db8dede51 Mon Sep 17 00:00:00 2001 From: jmschrack Date: Fri, 2 Dec 2016 10:15:58 -0600 Subject: [PATCH] Added missing "$" to variable name on line 819 Without the "$", some shells would try to evaluate it as a string instead of an int. This would result in an infinite loop of "Expecting Integer Expression" errors. --- magick-slicer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magick-slicer.sh b/magick-slicer.sh index 27a3ee4..8c4ebdf 100755 --- a/magick-slicer.sh +++ b/magick-slicer.sh @@ -816,7 +816,7 @@ debugMsg "Section: Slicer B" zoomPixels(){ # zoom tileSize local zoom=$1 local pixels=$2 - if [ "zoom" -ne 0 ] + if [ "$zoom" -ne 0 ] then let "pixels = pixels * 100" for(( i=0; i