Correct conditionals in make_vm_config()

pull/139/head
Martin Wimpress 3 years ago committed by Martin Wimpress
parent 9cc489608c
commit 68213b89e7
  1. 10
      quickget

@ -408,22 +408,22 @@ function make_vm_config() {
local GUEST=""
IMAGE_FILE="${1}"
ISO_FILE="${2}"
if [[ "${OS}" == "elementary" ]]; then
if [ "${OS}" == "elementary" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == "freebsd" ]]; then
elif [ "${OS}" == "freebsd" ]; then
GUEST="freebsd"
IMAGE_TYPE="iso"
elif [[ "${OS}" == "fedora" ]]; then
elif [ "${OS}" == "fedora" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == *"linuxmint"* ]]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == "opensuse" ]]; then
elif [ "${OS}" == "opensuse" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == "popos" ]]; then
elif [ "${OS}" == "popos" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == *"ubuntu"* ]]; then

Loading…
Cancel
Save