Merge pull request #428 from thaJeztah/remove_nightly_edge

remove code to handle nightly and edge channels
This commit is contained in:
Paweł Gronowski authored and GitHub committed 2024-07-08 09:15:01 +02:00
commit fe5e7d30fe
2 files changed
+2 -11

No files matched your search

-6
View File
@@ -88,8 +88,6 @@ VERSION="${VERSION#v}"
# The channel to install from:
# * stable
# * test
# * edge (deprecated)
# * nightly (deprecated)
DEFAULT_CHANNEL_VALUE="stable"
if [ -z "$CHANNEL" ]; then
CHANNEL=$DEFAULT_CHANNEL_VALUE
@@ -149,10 +147,6 @@ esac
case "$CHANNEL" in
stable|test)
;;
edge|nightly)
>&2 echo "DEPRECATED: the $CHANNEL channel has been deprecated and is no longer supported by this script."
exit 1
;;
*)
>&2 echo "unknown CHANNEL '$CHANNEL': use either stable or test."
exit 1
+2 -5
View File
@@ -26,7 +26,6 @@ STABLE_LATEST="27.0.3"
# The channel to install from:
# * test
# * stable
# * nightly (deprecated)
DEFAULT_CHANNEL_VALUE="stable"
if [ -z "$CHANNEL" ]; then
CHANNEL=$DEFAULT_CHANNEL_VALUE
@@ -48,11 +47,9 @@ case "$CHANNEL" in
STATIC_RELEASE_URL="https://download.docker.com/linux/static/$CHANNEL/$(uname -m)/docker-${TEST_LATEST}.tgz"
STATIC_RELEASE_ROOTLESS_URL="https://download.docker.com/linux/static/$CHANNEL/$(uname -m)/docker-rootless-extras-${TEST_LATEST}.tgz"
;;
"nightly")
>&2 echo "DEPRECATED: the nightly channel has been deprecated and is no longer supported by this script."; exit 1
;;
*)
>&2 echo "Aborting because of unknown CHANNEL \"$CHANNEL\". Set \$CHANNEL to either \"stable\" or \"test\"."; exit 1
>&2 echo "Aborting because of unknown CHANNEL \"$CHANNEL\". Set \$CHANNEL to either \"stable\" or \"test\"."
exit 1
;;
esac