fix: move creation of script before functions that may update it (#1577)
This commit is contained in:
parent
588e421040
commit
b60ff761e7
4
quickemu
4
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
|
||||
|
|
Loading…
Reference in New Issue