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*) 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)"

Loading…
Cancel
Save