diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-08-26 09:48:18 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-30 12:34:26 +0100 |
commit | 7bbe24f19e6005eccefd404b3a6d5d9443dd5b36 (patch) | |
tree | bee7201521496abf2e1d0da1f7d17e819ac14fc9 /scripts/runqemu-internal | |
parent | 468fef1ccfcc5495b6d20576864269da0cdba948 (diff) | |
download | openembedded-core-7bbe24f19e6005eccefd404b3a6d5d9443dd5b36.tar.gz openembedded-core-7bbe24f19e6005eccefd404b3a6d5d9443dd5b36.tar.bz2 openembedded-core-7bbe24f19e6005eccefd404b3a6d5d9443dd5b36.zip |
runqemu-internal: Fixes unary operator expected in new TCPSERIAL_PORTNUM
If $TCPSERIAL_PORTNUM is empty string causes an error because
expands the expresion to,
$TCPSERIAL_PORTNUM == "" -> == ""
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index baf53f3e8b..a691a80a46 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -620,7 +620,7 @@ if [ "x$QEMUOPTIONS" = "x" ]; then return 1 fi -if [ $TCPSERIAL_PORTNUM != "" ]; then +if [ "$TCPSERIAL_PORTNUM" != "" ]; then if [ "$MACHINE" = "qemuarm64" ]; then SCRIPT_QEMU_EXTRA_OPT="$SCRIPT_QEMU_EXTRA_OPT -device virtio-serial-device -chardev socket,id=virtcon,port=$TCPSERIAL_PORTNUM,host=127.0.0.1 -device virtconsole,chardev=virtcon" else |