Skip to content

Commit

Permalink
Merge pull request #161 from hypriot/check-wsl2
Browse files Browse the repository at this point in the history
Check for WSL2
  • Loading branch information
StefanScherer authored Dec 17, 2019
2 parents 0b28b5c + 678b6d7 commit 3c85a33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flash
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,13 @@ case "${OSTYPE}" in
;;
esac

if endswith microsoft-standard "$(uname -r)"; then
echo This script does not work in WSL2.
exit 11
fi

if endswith Microsoft "$(uname -r)"; then
echo This script does not work in WSL.
echo This script does not work in WSL1.
exit 11
fi

Expand Down

0 comments on commit 3c85a33

Please sign in to comment.