mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Vars refactor: Replace STATUSQUO with STATUS_QUO
This commit is contained in:
parent
fe718a8423
commit
eebd5f0605
1 changed files with 4 additions and 4 deletions
8
quickemu
8
quickemu
|
@ -176,7 +176,7 @@ function vm_boot() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Has the status quo been requested?
|
# 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."
|
echo " Existing disk state will be preserved, no writes will be committed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ function vm_boot() {
|
||||||
-device virtio-rng-pci,rng=rng0 \
|
-device virtio-rng-pci,rng=rng0 \
|
||||||
${VIDEO_DEV} \
|
${VIDEO_DEV} \
|
||||||
-display ${UI},gl=${GL} \
|
-display ${UI},gl=${GL} \
|
||||||
${STATUSQUO} \
|
${STATUS_QUO} \
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@ DELETE=0
|
||||||
ENABLE_EFI=0
|
ENABLE_EFI=0
|
||||||
SNAPSHOT_ACTION=""
|
SNAPSHOT_ACTION=""
|
||||||
SNAPSHOT_TAG=""
|
SNAPSHOT_TAG=""
|
||||||
STATUSQUO=""
|
STATUS_QUO=""
|
||||||
VM=""
|
VM=""
|
||||||
readonly DISK_MIN_SIZE=$((197632 * 8))
|
readonly DISK_MIN_SIZE=$((197632 * 8))
|
||||||
readonly QEMU="/snap/bin/qemu-virgil"
|
readonly QEMU="/snap/bin/qemu-virgil"
|
||||||
|
@ -351,7 +351,7 @@ while [ $# -gt 0 ]; do
|
||||||
shift
|
shift
|
||||||
shift;;
|
shift;;
|
||||||
-status-quo|--status-quo)
|
-status-quo|--status-quo)
|
||||||
STATUSQUO="-snapshot"
|
STATUS_QUO="-snapshot"
|
||||||
shift;;
|
shift;;
|
||||||
-vm|--vm)
|
-vm|--vm)
|
||||||
VM="$2"
|
VM="$2"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue