Skip to content

Commit

Permalink
fix: move creation of script before functions that may update it (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
philclifford authored Feb 1, 2025
1 parent 588e421 commit b60ff76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b60ff76

Please sign in to comment.