Vars refactor: Replace STATUSQUO with STATUS_QUO

This commit is contained in:
Martin Wimpress 2020-03-21 10:57:27 +00:00
parent fe718a8423
commit eebd5f0605
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -176,7 +176,7 @@ function vm_boot() {
fi
# Has the status quo been requested?
if [ "${STATUSQUO}" == "-snapshot" ] && [ -z "${iso}" ]; then
if [ "${STATUS_QUO}" == "-snapshot" ] && [ -z "${iso}" ]; then
echo " Existing disk state will be preserved, no writes will be committed."
fi
@ -291,7 +291,7 @@ function vm_boot() {
-device virtio-rng-pci,rng=rng0 \
${VIDEO_DEV} \
-display ${UI},gl=${GL} \
${STATUSQUO} \
${STATUS_QUO} \
"$@"
}
@ -320,7 +320,7 @@ DELETE=0
ENABLE_EFI=0
SNAPSHOT_ACTION=""
SNAPSHOT_TAG=""
STATUSQUO=""
STATUS_QUO=""
VM=""
readonly DISK_MIN_SIZE=$((197632 * 8))
readonly QEMU="/snap/bin/qemu-virgil"
@ -351,7 +351,7 @@ while [ $# -gt 0 ]; do
shift
shift;;
-status-quo|--status-quo)
STATUSQUO="-snapshot"
STATUS_QUO="-snapshot"
shift;;
-vm|--vm)
VM="$2"