Issue #8605: Unportable test(1) operator in tools/extract-vector-icon.sh

This commit is contained in:
Thomas Klausner 2022-09-10 23:08:06 +02:00 committed by Jehan
parent 2be2c43c9c
commit 22dee60a9d
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ fi
compute_viewbox="$(pwd)/../../tools/compute-svg-viewbox"
source="$1"
id="$2"
if [ "$#" == 4 ]; then
if [ "$#" = 4 ]; then
# The expected display width/height for the image.
width="$3"
height="$4"
@ -107,7 +107,7 @@ rm -f $svg_temp
# The finale SVG file with properly set viewBox.
svg="$svg_start $viewBox"
if [ "$#" == 5 ]; then
if [ "$#" = 5 ]; then
svg="$svg
width=\"$width\"
height=\"$height\""