Commit 9b232a77 authored by Chris Croome's avatar Chris Croome

HTTP Location header is now lower case

parent b7cd17ce
Pipeline #10875 passed with stage
in 1 minute and 31 seconds
......@@ -7,7 +7,7 @@ if [[ ! -d ${DOWNLOAD_DIR} ]]; then
mkdir -p "${DOWNLOAD_DIR}"
fi
LATEST_VERSION=$(curl -sI https://github.com/docker/compose/releases/latest | grep ^Location | sed 's;^Location: https:/;;' | sed 's/\r$//' | awk -F"/" '{print $NF}')
LATEST_VERSION=$(curl -sI https://github.com/docker/compose/releases/latest | grep ^location | sed 's;^location: https:/;;' | sed 's/\r$//' | awk -F"/" '{print $NF}')
KERNEL=$(uname -s)
MACHINE=$(uname -m)
LATEST_VERSION_URL="https://github.com/docker/compose/releases/download/${LATEST_VERSION}/docker-compose-${KERNEL}-${MACHINE}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment