From 9dc669b44eac0d7ae8c6470dc39c3269c7e96c40 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 11 May 2024 12:16:50 +0100 Subject: [PATCH] style: improve the output when attempting to start a running VM --- quickemu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index d261941..9651f60 100755 --- a/quickemu +++ b/quickemu @@ -1333,9 +1333,8 @@ function vm_boot() { sed -i -e 's/ -/ \\\n -/g' "${VMDIR}/${VMNAME}.sh" ${QEMU} "${args[@]}" &> "${VMDIR}/${VMNAME}.log" & sleep 0.25 + echo " - Process: Starting ${VM} as ${VMNAME} ($(cat "${VMDIR}/${VMNAME}.pid"))" fi - - echo " - Process: Starting ${VM} as ${VMNAME} ($(cat "${VMDIR}/${VMNAME}.pid"))" } function start_viewer { @@ -2036,6 +2035,8 @@ if [ -z "${VM_PID}" ]; then fi start_viewer else + echo "${VMNAME}" + echo " - Process: Already running ${VM} as ${VMNAME} (${VM_PID})" parse_ports_from_file start_viewer fi