From b47a61adcf16615512c105b514236e14365f33c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 15 Dec 2018 23:45:34 +0100 Subject: [PATCH] Make shellcheck happy --- qubes-rpc/qubes.GetImageRGBA | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.GetImageRGBA b/qubes-rpc/qubes.GetImageRGBA index c683ad2..850fdcc 100755 --- a/qubes-rpc/qubes.GetImageRGBA +++ b/qubes-rpc/qubes.GetImageRGBA @@ -30,7 +30,7 @@ if [ "$m" = SVG ]; then rsvg-convert -o "$tmpfile2" "$filename" # downscale the image if necessary if [ -n "$forcemaxsize" ] && \ - ( [ "$w" -gt "$forcemaxsize" ] || [ "$h" -gt "$forcemaxsize" ] ); then + { [ "$w" -gt "$forcemaxsize" ] || [ "$h" -gt "$forcemaxsize" ]; }; then convert "$tmpfile2" -scale "${forcemaxsize}x${forcemaxsize}" "$tmpfile2" # read the size again, because icon may not be a square s="$(identify -format '%w %h' "$tmpfile2")"