style: improve the output when attempting to start a running VM

This commit is contained in:
Martin Wimpress 2024-05-11 12:16:50 +01:00 committed by Martin Wimpress
parent 27ca4a27f0
commit 9dc669b44e
1 changed files with 3 additions and 2 deletions

View File

@ -1333,9 +1333,8 @@ function vm_boot() {
sed -i -e 's/ -/ \\\n -/g' "${VMDIR}/${VMNAME}.sh"
${QEMU} "${args[@]}" &> "${VMDIR}/${VMNAME}.log" &
sleep 0.25
fi
echo " - Process: Starting ${VM} as ${VMNAME} ($(cat "${VMDIR}/${VMNAME}.pid"))"
fi
}
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