Browse Source

new: [install.sh] WSL2 installation support

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 5 years ago
parent
commit
366fa61a85
  1. 9
      src/install.sh

9
src/install.sh

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

Loading…
Cancel
Save