From b60ff761e7dcb185387606404e45f408d41f0617 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sat, 1 Feb 2025 22:11:53 +0000 Subject: [PATCH] fix: move creation of script before functions that may update it (#1577) --- quickemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index 97acd6e..743c3a2 100755 --- a/quickemu +++ b/quickemu @@ -1187,6 +1187,8 @@ function vm_boot() { # Set the hostname of the VM NET="user,hostname=${VMNAME}" + echo "#!/usr/bin/env bash" > "${VMDIR}/${VMNAME}.sh" + configure_cpu configure_ram configure_bios @@ -1199,8 +1201,6 @@ function vm_boot() { configure_usb configure_tpm - echo "#!/usr/bin/env bash" > "${VMDIR}/${VMNAME}.sh" - # Changing process name is not supported on macOS if [ "${OS_KERNEL}" == "Linux" ]; then # shellcheck disable=SC2054,SC2206,SC2140