From 5b0103e58a615077124a4a122ef3fd7fefd9d5b3 Mon Sep 17 00:00:00 2001 From: Haxy89 <37550896+Haxy89@users.noreply.github.com> Date: Tue, 12 May 2020 18:33:52 +0200 Subject: [PATCH] Format scripts bug fix (#1244) Co-authored-by: Haxy89 <32634129+Haxy89@users.noreply.github.com> --- static/format-chosen.sh | 2 +- static/format-sdb.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/format-chosen.sh b/static/format-chosen.sh index 923ab591..4046db3c 100644 --- a/static/format-chosen.sh +++ b/static/format-chosen.sh @@ -42,7 +42,7 @@ elif [ "$SYSVENDOR" == "Xen" ]; then SYSNAME="Xen/XCP-NG" DEVTYPE=xvdb -elif [ "$SYSVENDOR" == "QEMU" ] | [ "$SYSVENDOR" == "Red Hat" ]; +elif [[ "$SYSVENDOR" == "QEMU" || "$SYSVENDOR" == "Red Hat" ]]; then SYSNAME="KVM/QEMU" DEVTYPE=vdb diff --git a/static/format-sdb.sh b/static/format-sdb.sh index a55015c5..8a535a08 100644 --- a/static/format-sdb.sh +++ b/static/format-sdb.sh @@ -42,7 +42,7 @@ elif [ "$SYSVENDOR" == "Xen" ]; then SYSNAME="Xen/XCP-NG" DEVTYPE=xvdb -elif [ "$SYSVENDOR" == "QEMU" ] | [ "$SYSVENDOR" == "Red Hat" ]; +elif [[ "$SYSVENDOR" == "QEMU" || "$SYSVENDOR" == "Red Hat" ]]; then SYSNAME="KVM/QEMU" DEVTYPE=vdb