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.
This commit is contained in:
jmschrack 2016-12-02 10:15:58 -06:00 committed by GitHub
parent caf77ba991
commit 4ed79f2fc6
1 changed files with 1 additions and 1 deletions

View File

@ -816,7 +816,7 @@ debugMsg "Section: Slicer B"
zoomPixels(){ # zoom tileSize zoomPixels(){ # zoom tileSize
local zoom=$1 local zoom=$1
local pixels=$2 local pixels=$2
if [ "zoom" -ne 0 ] if [ "$zoom" -ne 0 ]
then then
let "pixels = pixels * 100" let "pixels = pixels * 100"
for(( i=0; i<zoom; i++ )) for(( i=0; i<zoom; i++ ))