Skip to content

Commit

Permalink
Don't check for docker service on WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Oct 21, 2024
1 parent e02edd3 commit 2fc28a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fc28a4

Please sign in to comment.