From 366fa61a85a19c7ee839bf0ae1cd1e85ed1b0650 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 13 Dec 2019 16:29:31 +0100 Subject: [PATCH] new: [install.sh] WSL2 installation support Signed-off-by: Valentin Lab --- src/install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index 7430b3e..b372b4b 100644 --- a/src/install.sh +++ b/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)"