summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakirnth Nagarasa <sakirnth@gmail.com>2021-04-27 08:05:46 +0000
committerSakirnth Nagarasa <sakirnth@gmail.com>2021-04-27 08:05:46 +0000
commitc5ad2c9e676d563b9362296c0c240ca48f92b92b (patch)
tree1076c8c858fb3b7f40523c24c1c83acac60a9004
parentIgnore serial connection when it is not configured. (diff)
downloadcompute-tools-tmp-qemu.tar.xz
compute-tools-tmp-qemu.zip
Fixing if statement in SERIAL.tmp-qemu
Signed-off-by: Sakirnth Nagarasa <sakirnth@gmail.com>
-rwxr-xr-xlibexec/container/start-qemu3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/container/start-qemu b/libexec/container/start-qemu
index c81e6f5..b7a9ca5 100755
--- a/libexec/container/start-qemu
+++ b/libexec/container/start-qemu
@@ -254,8 +254,9 @@ then
MEMORY="-m $(awk -Fmemory= '/^memory=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
if [ -z "$(awk -Fserial= '/^serial=/ { print $2 }' ${CONFIG}/${NAME}.conf)" ]
+ then
SERIAL=""
- else if
+ else
SERIAL="-serial $(awk -Fserial= '/^serial=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
fi