Merge pull request #21447 from saizai/patch-1

Fix WSL uname test
This commit is contained in:
Sadick
2020-10-19 11:11:35 +03:00
committed by GitHub

View File

@@ -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