Skip to content

Commit

Permalink
Abandon only if using WSL 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoerensen committed Mar 7, 2024
1 parent 7546b95 commit 4514cf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4514cf6

Please sign in to comment.