Skip to content

Commit

Permalink
Remove obsolete check
Browse files Browse the repository at this point in the history
  • Loading branch information
XternA committed Nov 22, 2024
1 parent 3dd1167 commit 572a408
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/container/container-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 572a408

Please sign in to comment.