From 2fc28a498c917fa74f96aeafcd3faf9fe1e364fa Mon Sep 17 00:00:00 2001 From: Yorick Date: Mon, 21 Oct 2024 05:47:11 +0000 Subject: [PATCH] Don't check for docker service on WSL --- ethd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethd b/ethd index a68efabb..943f9274 100755 --- a/ethd +++ b/ethd @@ -72,7 +72,7 @@ __determine_distro() { __handle_docker_sudo() { set +e - if [[ "$__distro" =~ "debian" || "$__distro" = "ubuntu" ]]; then + if [[ ( "$__distro" =~ "debian" || "$__distro" = "ubuntu" ) ]] && ! grep -qi microsoft /proc/version; then systemctl status docker >/dev/null __result=$? if [ ! "${__result}" -eq 0 ]; then