Make shellcheck happy

This commit is contained in:
Marek Marczykowski-Górecki 2018-12-15 23:45:34 +01:00
parent b026524ec4
commit b47a61adcf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -30,7 +30,7 @@ if [ "$m" = SVG ]; then
rsvg-convert -o "$tmpfile2" "$filename" rsvg-convert -o "$tmpfile2" "$filename"
# downscale the image if necessary # downscale the image if necessary
if [ -n "$forcemaxsize" ] && \ if [ -n "$forcemaxsize" ] && \
( [ "$w" -gt "$forcemaxsize" ] || [ "$h" -gt "$forcemaxsize" ] ); then { [ "$w" -gt "$forcemaxsize" ] || [ "$h" -gt "$forcemaxsize" ]; }; then
convert "$tmpfile2" -scale "${forcemaxsize}x${forcemaxsize}" "$tmpfile2" convert "$tmpfile2" -scale "${forcemaxsize}x${forcemaxsize}" "$tmpfile2"
# read the size again, because icon may not be a square # read the size again, because icon may not be a square
s="$(identify -format '%w %h' "$tmpfile2")" s="$(identify -format '%w %h' "$tmpfile2")"