From cd296b6e85333a7a3c01aba64777c845d23a0059 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 11 May 2024 21:30:25 +0200 Subject: [PATCH] feat: Detect MacOS --- src/proc.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/proc.sh b/src/proc.sh index a8b02543..52e08310 100644 --- a/src/proc.sh +++ b/src/proc.sh @@ -30,9 +30,13 @@ if [[ "$KVM" != [Nn]* ]]; then if [ -n "$KVM_ERR" ]; then KVM="N" - error "KVM acceleration not available $KVM_ERR, this will cause a major loss of performance." - error "See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended)." - [[ "$DEBUG" != [Yy1]* ]] && exit 88 + if [[ "$OSTYPE" =~ ^darwin ]]; then + warn "you are using MacOS which has no KVM support, this will cause a major loss of performance." + else + error "KVM acceleration not available $KVM_ERR, this will cause a major loss of performance." + error "See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended)." + [[ "$DEBUG" != [Yy1]* ]] && exit 88 + fi fi fi