diff --git a/resources/win/atom.sh b/resources/win/atom.sh index 42840a938..6f2a81cea 100755 --- a/resources/win/atom.sh +++ b/resources/win/atom.sh @@ -5,7 +5,7 @@ if command -v "cygpath" > /dev/null; then ATOMCMD=$(cygpath "$(dirname "$0")/atom.cmd" -a -w) else pushd "$(dirname "$0")" > /dev/null - if [[ $(uname -r) == *-Microsoft ]]; then + if [[ $(uname -r) =~ (M|m)icrosoft ]]; then # We are in Windows Subsystem for Linux, map /mnt/drive root="/mnt/" # If different root mount point defined in /etc/wsl.conf, use that instead