You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
set +e # Don't exit if finding version fails - will handle gracefully
160
+
cli_version_suffix="=$(apt-cache madison ${cli_package_name}| awk -F"|"'{print $2}'| sed -e 's/^[ \t]*//'| grep -E -m 1 "${docker_version_regex}")"
161
+
set -e
162
+
if [ -z"${cli_version_suffix}" ] || [ "${cli_version_suffix}"="=" ];then
163
+
echo"(!) No full or partial Docker / Moby version match found for \"${DOCKER_VERSION}\" on OS ${ID}${VERSION_CODENAME} (${architecture}). Available versions:"
164
+
apt-cache madison ${cli_package_name}| awk -F"|"'{print $2}'| grep -oP '^(.+:)?\K.+'
152
165
exit 1
153
166
fi
154
167
echo"cli_version_suffix ${cli_version_suffix}"
155
168
fi
156
169
157
-
# Ensure apt is in non-interactive to avoid prompts
apt-get -y install --no-install-recommends moby-compose ||echo"(*) Package moby-compose (Docker Compose v2) not available for ${VERSION_CODENAME}${architecture}. Skipping."
176
+
apt-get -y install --no-install-recommends moby-compose ||echo"(*) Package moby-compose (Docker Compose v2) not available for OS ${ID}${VERSION_CODENAME}(${architecture}). Skipping."
echo"(!) No full or partial Docker / Moby version match found for \"${DOCKER_VERSION}\" on OS ${ID}${VERSION_CODENAME} (${architecture}). Available versions:"
173
+
apt-cache madison ${cli_package_name}| awk -F"|"'{print $2}'| grep -oP '^(.+:)?\K.+'
apt-get -y install --no-install-recommends moby-compose ||echo"(*) Package moby-compose (Docker Compose v2) not available for ${VERSION_CODENAME}${architecture}. Skipping."
186
+
apt-get -y install --no-install-recommends moby-compose ||echo"(*) Package moby-compose (Docker Compose v2) not available for OS ${ID}${VERSION_CODENAME}(${architecture}). Skipping."
0 commit comments