diff options
author | Sakirnth Nagarasa <sakirnth@gmail.com> | 2021-04-27 08:05:46 +0000 |
---|---|---|
committer | Sakirnth Nagarasa <sakirnth@gmail.com> | 2021-09-01 08:25:43 +0000 |
commit | 5cbc2d2cb7c60a3e1fd171ca600adfbdc45ea632 (patch) | |
tree | 8e68be7cf4bc41dbec7c50b28cd87ce4deb09696 /libexec | |
parent | Ignore serial connection when it is not configured. (diff) | |
download | compute-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-x | libexec/container/start-qemu | 3 |
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 |