From: Kamil Rytarowski Date: Tue, 25 Apr 2017 13:18:28 +0000 (+0200) Subject: scripts/qemu-binfmt-conf.sh: Fix shell portability issue X-Git-Tag: v2.10.0-rc0~202^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f75023ab89708101dabc8f710bd0ed501311c8a;p=thirdparty%2Fqemu.git scripts/qemu-binfmt-conf.sh: Fix shell portability issue Appease pkgsrc and use portable shell variable comparison. This switches "==" to "=". It should not be a functional change. Signed-off-by: Kamil Rytarowski Reviewed-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Michael Tokarev --- diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 0f1aa63872f..8afc3eb5bb8 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -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