diff --git a/flash b/flash index e939a37..6c2f5f3 100755 --- a/flash +++ b/flash @@ -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