Browse Source

fix: [rallly] add missing ``version_gt``

pull/43/head
Boris Gallet 11 months ago
committed by Valentin Lab
parent
commit
ae127dcd1d
  1. 2
      rallly/hooks/init

2
rallly/hooks/init

@ -2,6 +2,8 @@
set -e set -e
version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }
## bug: https://github.com/adoptium/containers/issues/215#issuecomment-1142046045 ## bug: https://github.com/adoptium/containers/issues/215#issuecomment-1142046045
docker_version=$(docker info --format '{{.ServerVersion}}') docker_version=$(docker info --format '{{.ServerVersion}}')
if ! version_gt "$docker_version" 20.10.0; then if ! version_gt "$docker_version" 20.10.0; then

Loading…
Cancel
Save