From 68213b89e7922016de59852184e5a7add93624e9 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 19 Oct 2021 14:58:13 +0100 Subject: [PATCH] Correct conditionals in make_vm_config() --- quickget | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickget b/quickget index 1297ccd..7b93f7f 100755 --- a/quickget +++ b/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