|
@ -182,9 +182,9 @@ get_os() { |
|
|
uname_output="$(uname -s)" |
|
|
uname_output="$(uname -s)" |
|
|
case "${uname_output}" in |
|
|
case "${uname_output}" in |
|
|
Linux*) |
|
|
Linux*) |
|
|
if [[ "$(< /proc/version)" == *@(Microsoft|WSL)* ]]; then |
|
|
|
|
|
|
|
|
if [[ "$(< /proc/version)" =~ "@(Microsoft|WSL)" ]]; then |
|
|
e wsl |
|
|
e wsl |
|
|
# elif [[ "$(< /proc/version)" == *"@(microsoft|WSL)"* ]]; then |
|
|
|
|
|
|
|
|
# elif [[ "$(< /proc/version)" =~ "@(microsoft|WSL)" ]]; then |
|
|
# e wsl2 |
|
|
# e wsl2 |
|
|
else |
|
|
else |
|
|
e linux |
|
|
e linux |
|
|