From 572a408139631839b0eb7cb1130c8426f1c044eb Mon Sep 17 00:00:00 2001 From: XternA Date: Fri, 22 Nov 2024 19:11:09 +0000 Subject: [PATCH] Remove obsolete check --- scripts/container/container-config.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/container/container-config.sh b/scripts/container/container-config.sh index e380304..ba4665e 100644 --- a/scripts/container/container-config.sh +++ b/scripts/container/container-config.sh @@ -16,12 +16,10 @@ register_compose() { register_runtime() { export CONTAINER_ALIAS="docker" - if [ "$(uname)" = "Linux" ]; then - if [ -n "$WSL_DISTRO_NAME" ]; then - export HAS_CONTAINER_RUNTIME="$(where.exe $CONTAINER_ALIAS 2> /dev/null >&1)" - else - export HAS_CONTAINER_RUNTIME="$(command -v $CONTAINER_ALIAS 2> /dev/null 1>&1)" - fi + if [ -n "$WSL_DISTRO_NAME" ]; then + export HAS_CONTAINER_RUNTIME="$(where.exe $CONTAINER_ALIAS 2> /dev/null >&1)" + else + export HAS_CONTAINER_RUNTIME="$(command -v $CONTAINER_ALIAS 2> /dev/null 1>&1)" fi register_compose }