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