From 5cbc2d2cb7c60a3e1fd171ca600adfbdc45ea632 Mon Sep 17 00:00:00 2001 From: Sakirnth Nagarasa Date: Tue, 27 Apr 2021 10:05:46 +0200 Subject: Fixing if statement in SERIAL. Signed-off-by: Sakirnth Nagarasa --- libexec/container/start-qemu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3