Skip to content

Commit b397971

Browse files
committed
remove DOCKER_DASH_COMPOSE_VERSION
1 parent af0f3a2 commit b397971

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/docker-outside-of-docker/install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,9 @@ if [ "${DOCKER_DASH_COMPOSE_VERSION}" != "none" ]; then
362362
find_version_from_git_tags compose_version "$docker_compose_url" "tags/v"
363363
echo "(*) Installing docker-compose ${compose_version}..."
364364
curl -fsSL "https://github.com/docker/compose/releases/download/v${compose_version}/docker-compose-linux-${target_compose_arch}" -o ${docker_compose_path} || {
365-
if [[ $DOCKER_DASH_COMPOSE_VERSION == "latest" ]]; then
366-
install_compose_fallback "$docker_compose_url" "$compose_version" "$target_compose_arch" "$docker_compose_path"
367-
else
368-
echo -e "Error: Failed to install docker-compose v${compose_version}"
365+
install_compose_fallback "$docker_compose_url" "$compose_version" "$target_compose_arch" "$docker_compose_path"
366+
if [ $? -ne 0 ]; then
367+
echo -e "Error: "Failed to install docker-compose v${compose_version}"
369368
fi
370369
}
371370
chmod +x ${docker_compose_path}

0 commit comments

Comments
 (0)