|
@ -153,8 +153,8 @@ get_os() { |
|
|
Linux*) |
|
|
Linux*) |
|
|
if [[ "$(< /proc/version)" =~ ^.*@(Microsoft|WSL).*$ ]]; then |
|
|
if [[ "$(< /proc/version)" =~ ^.*@(Microsoft|WSL).*$ ]]; then |
|
|
e wsl |
|
|
e wsl |
|
|
# elif [[ "$(< /proc/version)" == *@(microsoft|WSL)* ]]; then |
|
|
|
|
|
# e wsl2 |
|
|
|
|
|
|
|
|
elif [[ "$(< /proc/version)" =~ ^.*-microsoft-*$ ]]; then |
|
|
|
|
|
e wsl2 |
|
|
else |
|
|
else |
|
|
e linux |
|
|
e linux |
|
|
fi |
|
|
fi |
|
@ -316,6 +316,11 @@ install.wsl() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install.wsl2() { |
|
|
|
|
|
install.linux |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run() { |
|
|
run() { |
|
|
OS="$(get_os)" |
|
|
OS="$(get_os)" |
|
|