[ci] use alternate bash comparison

The pattern `echo str | grep -qE pattern` likes to fail on the z CI here for
an unknown reason. Use `grep -qE pattern <<< str` instead.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
This commit is contained in:
Christopher Jones 2018-01-12 11:05:20 -05:00
parent 92309e34e4
commit 24da8a0ed4
No known key found for this signature in database
GPG Key ID: 9675B4D446658DE9
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ fetch_blob() {
-D- -D-
)" )"
curlHeaders="$(echo "$curlHeaders" | tr -d '\r')" 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" rm -f "$targetFile"
local blobRedirect="$(echo "$curlHeaders" | awk -F ': ' 'tolower($1) == "location" { print $2; exit }')" local blobRedirect="$(echo "$curlHeaders" | awk -F ': ' 'tolower($1) == "location" { print $2; exit }')"