Skip to content

Commit 0d79fd0

Browse files
tertekrikukissa
authored andcommitted
Add WSL support to local opencrvs setup (#6019)
1 parent 1c619f9 commit 0d79fd0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ sleep_if_non_ci 5
113113
echo -e "\033[32m:::::::::::::::::::::: Checking your operating system ::::::::::::::::::::::\033[0m"
114114
echo
115115

116-
if [ -n "$(uname -a | grep Ubuntu)" ]; then
116+
if [ -n "$(uname -r | grep microsoft-standard-WSL2)" ] && [ -n "$(cat /etc/os-release | grep Ubuntu)" ]; then
117+
wslKernelWithUbuntu=true
118+
echo -e "\033[32m:::::::::::::::: You are running Windows Subsystem for Linux . Checking distro ::::::::::::::::\033[0m"
119+
echo
120+
fi
121+
122+
if [ -n "$(uname -a | grep Ubuntu)" ] || [ $wslKernelWithUbuntu == true ]; then
117123
echo -e "\033[32m:::::::::::::::: You are running Ubuntu. Checking version ::::::::::::::::\033[0m"
118124
echo
119125

0 commit comments

Comments
 (0)