From c57b58c0b1fecd297e52f274d75d3f0587d2ac05 Mon Sep 17 00:00:00 2001 From: Tristan Radisson Date: Thu, 9 Mar 2023 11:28:14 +0100 Subject: [PATCH] Adapt install script to work on RHEL RHEL curl is returning `Location` instead of `location` --- install_on_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_on_linux.sh b/install_on_linux.sh index 5ca8bc2..f1620d0 100755 --- a/install_on_linux.sh +++ b/install_on_linux.sh @@ -6,7 +6,7 @@ ARCHITECTURE=amd64 if [ "$(uname -m)" = "aarch64" ]; then ARCHITECTURE=arm64 fi -COMPOSE_SWITCH_VERSION=$(curl -sI https://github.com/docker/compose-switch/releases/latest | grep '^location:' | sed 's,.*/,,' | tr -d '\r') +COMPOSE_SWITCH_VERSION=$(curl -sI https://github.com/docker/compose-switch/releases/latest | grep -E '^(location|Location):' | sed 's,.*/,,' | tr -d '\r') COMPOSE_SWITCH_URL="https://github.com/docker/compose-switch/releases/download/${COMPOSE_SWITCH_VERSION}/docker-compose-linux-${ARCHITECTURE}" if ! docker compose version >/dev/null 2>&1; then