From 292722ea87dc4c50dc7238b9addf6499792ebfb2 Mon Sep 17 00:00:00 2001 From: Yorick Date: Tue, 19 Nov 2024 19:47:20 +0000 Subject: [PATCH] Fix ethd config --- ethd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethd b/ethd index 388b96d9..bc70af8f 100755 --- a/ethd +++ b/ethd @@ -101,7 +101,7 @@ __handle_docker() { echo "Will use sudo to access Docker" __docker_sudo="sudo" fi - if [[ ( "$__distro" =~ "debian" || "$__distro" = "ubuntu" ) ]] && ! grep -qi microsoft /proc/version; then + if [[ -f "${__env_file}" && ( "$__distro" =~ "debian" || "$__distro" = "ubuntu" ) ]] && ! grep -qi microsoft /proc/version; then # This gets used, but shellcheck doesn't recognize that # shellcheck disable=SC2034 DOCKER_ROOT=$(__dodocker system info --format '{{.DockerRootDir}}')