From db2b44b9a2858a0e41aa1b36ff2151254064e7a9 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 07:27:43 +0200 Subject: [PATCH] Shellcheck --- run/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/run.sh b/run/run.sh index e9ace9c..9bfdbc8 100755 --- a/run/run.sh +++ b/run/run.sh @@ -44,7 +44,7 @@ fi KVM_OPTS="" if [ -e /dev/kvm ] && sh -c 'echo -n > /dev/kvm' &> /dev/null; then - if [[ $(grep -e vmx -e svm /proc/cpuinfo) ]]; then + if grep -q -e vmx -e svm /proc/cpuinfo; then KVM_OPTS=",accel=kvm -enable-kvm -cpu host" fi fi