From 649c6906bcd01bc45be75190a7ae168e46eeba85 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 10 Sep 2020 10:05:14 +0200 Subject: [PATCH] strict machine check --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index ed1c9bb..1862816 100644 --- a/installer.sh +++ b/installer.sh @@ -137,7 +137,7 @@ case $ARCH in ;; esac -if [[ ! "intel-nuc odroid-c2 odroid-n2 odroid-xu qemuarm qemuarm-64 qemux86 qemux86-64 raspberrypi raspberrypi2 raspberrypi3 raspberrypi4 raspberrypi3-64 raspberrypi4-64 tinker" = *"${MACHINE}"* ]]; then +if [[ ! "${MACHINE}" =~ (intel-nuc|odroid-c2|odroid-n2|odroid-xu|qemuarm|qemuarm-64|qemux86|qemux86-64|raspberrypi|raspberrypi2|raspberrypi3|raspberrypi4|raspberrypi3-64|raspberrypi4-64|tinker) ]]; then error "Unknown machine type ${MACHINE}!" fi