Vars refactor: Tidy up initial vars layout

This commit is contained in:
Martin Wimpress 2020-03-21 11:05:31 +00:00
parent eebd5f0605
commit dbd0885f82
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -311,22 +311,25 @@ function usage() {
exit 1 exit 1
} }
# Lowercase variables are used in the VM config file only
guest_os="" guest_os=""
iso="" iso=""
driver_iso="" driver_iso=""
disk_img="" disk_img=""
disk="" disk=""
DELETE=0 DELETE=0
ENABLE_EFI=0 ENABLE_EFI=0
SNAPSHOT_ACTION="" SNAPSHOT_ACTION=""
SNAPSHOT_TAG="" SNAPSHOT_TAG=""
STATUS_QUO="" STATUS_QUO=""
VM="" VM=""
readonly LAUNCHER=$(basename $0)
readonly DISK_MIN_SIZE=$((197632 * 8)) readonly DISK_MIN_SIZE=$((197632 * 8))
readonly QEMU="/snap/bin/qemu-virgil" readonly QEMU="/snap/bin/qemu-virgil"
readonly QEMU_IMG="/snap/bin/qemu-virgil.qemu-img" readonly QEMU_IMG="/snap/bin/qemu-virgil.qemu-img"
readonly LAUNCHER=$(basename $0) readonly VIRGIL_PATH="/snap/qemu-virgil/current"
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "${1}" in case "${1}" in