Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
@ -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)"