mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Fix parsing of location header in docker update script
Fixes gh-24811
This commit is contained in:
parent
434b8a7b9d
commit
aefeb3ffaf
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
latest_version=$(curl -I -s https://github.com/docker/docker-ce/releases/latest | grep "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/docker/docker-ce/releases/latest | awk '{print tolower($0)}' | grep "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
|
||||
echo "Skip pre-release versions"
|
||||
|
Loading…
Reference in New Issue
Block a user