mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Minor code cleanup
This commit is contained in:
parent
958ef84931
commit
d1a984ff12
2 changed files with 6 additions and 5 deletions
10
quickemu
10
quickemu
|
@ -1,8 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
if ((BASH_VERSINFO[0] < 4))
|
if ((BASH_VERSINFO[0] < 4)); then
|
||||||
then
|
|
||||||
echo "Sorry, you need bash 4.0 or newer to run this script."
|
echo "Sorry, you need bash 4.0 or newer to run this script."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -992,8 +991,8 @@ function vm_boot() {
|
||||||
-device tpm-tis,tpmdev=tpm0)
|
-device tpm-tis,tpmdev=tpm0)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$extra_args" ]; then
|
if [ -n "${extra_args}" ]; then
|
||||||
args+=($extra_args)
|
args+=("${extra_args}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The OSK parameter contains parenthesis, they need to be escaped in the shell
|
# The OSK parameter contains parenthesis, they need to be escaped in the shell
|
||||||
|
@ -1078,6 +1077,7 @@ bridge=""
|
||||||
cpu_cores=""
|
cpu_cores=""
|
||||||
disk_img=""
|
disk_img=""
|
||||||
disk_size=""
|
disk_size=""
|
||||||
|
extra_args=""
|
||||||
fixed_iso=""
|
fixed_iso=""
|
||||||
floppy=""
|
floppy=""
|
||||||
guest_os="linux"
|
guest_os="linux"
|
||||||
|
@ -1090,7 +1090,6 @@ ram=""
|
||||||
secureboot="off"
|
secureboot="off"
|
||||||
tpm="off"
|
tpm="off"
|
||||||
usb_devices=()
|
usb_devices=()
|
||||||
extra_args=""
|
|
||||||
|
|
||||||
BRAILLE=""
|
BRAILLE=""
|
||||||
DELETE_DISK=0
|
DELETE_DISK=0
|
||||||
|
@ -1112,6 +1111,7 @@ VMDIR=""
|
||||||
VMNAME=""
|
VMNAME=""
|
||||||
VMPATH=""
|
VMPATH=""
|
||||||
|
|
||||||
|
# shellcheck disable=SC2155
|
||||||
readonly LAUNCHER=$(basename "${0}")
|
readonly LAUNCHER=$(basename "${0}")
|
||||||
readonly DISK_MIN_SIZE=$((197632 * 8))
|
readonly DISK_MIN_SIZE=$((197632 * 8))
|
||||||
readonly VERSION="3.12"
|
readonly VERSION="3.12"
|
||||||
|
|
1
quickget
1
quickget
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
# Here the quick 'n dirty guide to adding a new OS to quickget
|
# Here the quick 'n dirty guide to adding a new OS to quickget
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue