Skip to content

Commit 0a7329d

Browse files
committed
properly check Docker version
dpkg --compare-versions is debian-specific, but we're already debian-specific here.
1 parent 1b5b46a commit 0a7329d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ docker_update() {
211211

212212
if $HAS_DOCKER; then
213213
docker_version="$(docker version -f "{{ .Server.Version }}")"
214-
if version_gt "20.10.10" "$docker_version"; then
214+
if dpkg --compare-versions "$docker_version" '<<' 20.10.10; then
215215
echo "Updating docker, old version can't run some images (https://docs.linuxserver.io/FAQ/#jammy)"
216216
echo \
217217
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \

0 commit comments

Comments
 (0)