mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
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 <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>
This commit is contained in:
parent
3baa0a6a65
commit
6f75023ab8
1 changed files with 2 additions and 2 deletions
|
@ -284,12 +284,12 @@ while true ; do
|
||||||
shift
|
shift
|
||||||
# check given cpu is in the supported CPU list
|
# check given cpu is in the supported CPU list
|
||||||
for cpu in ${qemu_target_list} ; do
|
for cpu in ${qemu_target_list} ; do
|
||||||
if [ "$cpu" == "$1" ] ; then
|
if [ "$cpu" = "$1" ] ; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$cpu" == "$1" ] ; then
|
if [ "$cpu" = "$1" ] ; then
|
||||||
qemu_target_list="$1"
|
qemu_target_list="$1"
|
||||||
else
|
else
|
||||||
echo "ERROR: unknown CPU \"$1\"" 1>&2
|
echo "ERROR: unknown CPU \"$1\"" 1>&2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue