summaryrefslogtreecommitdiffstats
path: root/libexec/container/start-qemu
diff options
context:
space:
mode:
authorSakirnth Nagarasa <sakirnth@gmail.com>2021-04-27 08:05:46 +0000
committerSakirnth Nagarasa <sakirnth@gmail.com>2021-09-01 08:25:43 +0000
commit5cbc2d2cb7c60a3e1fd171ca600adfbdc45ea632 (patch)
tree8e68be7cf4bc41dbec7c50b28cd87ce4deb09696 /libexec/container/start-qemu
parentIgnore serial connection when it is not configured. (diff)
downloadcompute-tools-5cbc2d2cb7c60a3e1fd171ca600adfbdc45ea632.tar.xz
compute-tools-5cbc2d2cb7c60a3e1fd171ca600adfbdc45ea632.zip
Fixing if statement in SERIAL.
Signed-off-by: Sakirnth Nagarasa <sakirnth@gmail.com>
Diffstat (limited to '')
-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