diff --git a/sbin/common/downloaders.sh b/sbin/common/downloaders.sh index 3424b089f..09d2daf5f 100755 --- a/sbin/common/downloaders.sh +++ b/sbin/common/downloaders.sh @@ -71,7 +71,7 @@ function downloadLinuxBootJDK() { set +e curl -L -o bootjdk.tar.gz "${apiURL}" if ! grep "No releases match the request" bootjdk.tar.gz; then - apiSigURL=$(curl -v "${apiURL}" 2>&1 | tr -d \\r | awk '/^< Location:/{print $3 ".sig"}') + apiSigURL=$(curl -v "${apiURL}" 2>&1 | tr -d \\r | awk '/^< [Ll]ocation:/{print $3 ".sig"}') curl -L -o bootjdk.tar.gz.sig "${apiSigURL}" gpg --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key 3B04D753C9050D9A5D343F39843C48A565F8F04B trust;