]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts/qemu-binfmt-conf.sh: Fix shell portability issue
authorKamil Rytarowski <n54@gmx.com>
Tue, 25 Apr 2017 13:18:28 +0000 (15:18 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 10 May 2017 07:19:23 +0000 (10:19 +0300)
Appease pkgsrc and use portable shell variable comparison.
This switches "==" to "=". It should not be a functional change.

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/qemu-binfmt-conf.sh

index 0f1aa63872f1382fbc747b2a0d3b310d7dd61c8f..8afc3eb5bb82904ec280df245a02c4e709e5b0bc 100755 (executable)
@@ -284,12 +284,12 @@ while true ; do
         shift
         # check given cpu is in the supported CPU list
         for cpu in ${qemu_target_list} ; do
-            if [ "$cpu" == "$1" ] ; then
+            if [ "$cpu" = "$1" ] ; then
                 break
             fi
         done
 
-        if [ "$cpu" == "$1" ] ; then
+        if [ "$cpu" = "$1" ] ; then
             qemu_target_list="$1"
         else
             echo "ERROR: unknown CPU \"$1\"" 1>&2