Skip to content

Commit

Permalink
feat: Detect MacOS platform
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored May 11, 2024
1 parent ab95f11 commit 586be3b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/proc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,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
Expand Down

0 comments on commit 586be3b

Please sign in to comment.