|
|
|
@ -23,13 +23,11 @@ |
|
|
|
|
# } |
|
|
|
|
# 6. Add new OS to the argument parser at the bottom of the script |
|
|
|
|
|
|
|
|
|
trap 'kill $(jobs -p)' EXIT |
|
|
|
|
|
|
|
|
|
if ((BASH_VERSINFO[0] < 4)) |
|
|
|
|
then |
|
|
|
|
echo "Sorry, you need bash 4.0 or newer to run this script." |
|
|
|
|
exit 1 |
|
|
|
|
function cleanup() { |
|
|
|
|
if [ -n "$(jobs -p)" ]; then |
|
|
|
|
kill $(jobs -p) |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function pretty_name() { |
|
|
|
|
local SIMPLE_NAME="" |
|
|
|
@ -965,6 +963,14 @@ function get_windows() { |
|
|
|
|
make_vm_config "${FILE_NAME}" "virtio-win.iso" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
trap cleanup EXIT |
|
|
|
|
|
|
|
|
|
if ((BASH_VERSINFO[0] < 4)) |
|
|
|
|
then |
|
|
|
|
echo "Sorry, you need bash 4.0 or newer to run this script." |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
LANGS=() |
|
|
|
|
languages_windows |
|
|
|
|
|
|
|
|
|