Merge pull request #36001 from tophj-ibm/frozen-z-ci

[ci] use alternate sh comparison
This commit is contained in:
Sebastiaan van Stijn 2018-01-13 01:00:21 +01:00 committed by GitHub
commit bc183a0062
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ fetch_blob() {
-D-
)"
curlHeaders="$(echo "$curlHeaders" | tr -d '\r')"
if echo "$curlHeaders" | grep -qE "^HTTP/[0-9].[0-9] 3"; then
if grep -qE "^HTTP/[0-9].[0-9] 3" <<<"$curlHeaders"; then
rm -f "$targetFile"
local blobRedirect="$(echo "$curlHeaders" | awk -F ': ' 'tolower($1) == "location" { print $2; exit }')"