Skip to content

Commit

Permalink
Added missing "$" to variable name on line 819
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmschrack committed Dec 2, 2016
1 parent caf77ba commit 4ed79f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick-slicer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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<zoom; i++ ))
Expand Down

0 comments on commit 4ed79f2

Please sign in to comment.