Merge pull request #26086 from dreis2211

* pr/26086:
  Fix Docker update detection on CI

Closes gh-26086
pull/27078/head
Phillip Webb 4 years ago
commit 95a92653e1

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
latest_version=$(curl -I -s https://github.com/docker/docker-ce/releases/latest | grep -i "location:" | awk '{n=split($0, parts, "/"); print substr(parts[n],2);}' | awk '{$1=$1;print}' | tr -d '\r' | tr -d '\n' ) latest_version=$(curl -I -s https://github.com/moby/moby/releases/latest | grep -i "location:" | awk '{n=split($0, parts, "/"); print substr(parts[n],2);}' | awk '{$1=$1;print}' | tr -d '\r' | tr -d '\n' )
if [[ $latest_version =~ (beta|rc) ]]; then if [[ $latest_version =~ (beta|rc) ]]; then
echo "Skip pre-release versions" echo "Skip pre-release versions"

Loading…
Cancel
Save