[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portabi
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue |
Date: |
Sun, 7 May 2017 10:02:20 +0300 |
From: Kamil Rytarowski <address@hidden>
Appease pkgsrc and use portable shell variable comparison.
This switches "==" to "=". It should not be a functional change.
Signed-off-by: Kamil Rytarowski <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
scripts/qemu-binfmt-conf.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh
index 0f1aa63872..8afc3eb5bb 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
--
2.11.0
- [Qemu-devel] [PULL 23/23] tests: Remove redundant assignment, (continued)
- [Qemu-devel] [PULL 23/23] tests: Remove redundant assignment, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 06/23] usb-ccid: make ccid_write_data_block() cope with null buffers, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 19/23] tests: Ignore another built executable (test-hmp), Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 13/23] qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 04/23] Add 'none' as type for drive's if option, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 02/23] ppc_booke: drop useless assignment, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 07/23] device_tree: fix compiler warnings (clang 5), Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 22/23] MAINTAINERS: Update paths for AioContext implementation, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 10/23] block: Make 'replication_state' an enum, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 18/23] scripts: Switch to more portable Perl shebang, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue,
Michael Tokarev <=
- [Qemu-devel] [PULL 16/23] virtfs: allow a device id to be specified in the -virtfs option, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 03/23] doc: fix function spelling, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 21/23] MAINTAINERS: Update paths for main loop, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 20/23] jazz_led: fix bad snprintf, Michael Tokarev, 2017/05/07
- [Qemu-devel] [PULL 05/23] tests: Ignore more test executables, Michael Tokarev, 2017/05/07
- Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07, no-reply, 2017/05/07
- Re: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07, Stefan Hajnoczi, 2017/05/08