From 4514cf6fb49fb822bd4379563eec06f5b0c64e43 Mon Sep 17 00:00:00 2001 From: Henrik Soerensen Date: Wed, 6 Mar 2024 20:03:09 -0500 Subject: [PATCH] Abandon only if using WSL 1 --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index c7af69e..0de07f1 100755 --- a/install.sh +++ b/install.sh @@ -627,9 +627,8 @@ else abort "This script is only meant to be run on Debian or Ubuntu." fi -# Check if running on WSL 1 or WSL 2 -if grep -qE "(Microsoft|WSL)" /proc/version &> /dev/null ; then - abort "WSL is not supported. Please run this script on a native Linux installation." +if uname -r | grep -q "Microsoft"; then + abort "WSL 1 is not supported. Please run this script on a native Linux installation or WSL 2." fi if [[ ! (${operating_system_distribution} == "ubuntu" || ${operating_system_distribution} == "debian") ]]; then