Remove need for `grep` to enable `pipefail`

What does this MR do?

Remove need for grep to enable pipefail

The Shell script has a dependency on grep to exist.

This can easily be performed with POSIX Shell case.

Removes the grep dependency.

Why was this MR needed?

grep is not available in all images that a gitlab-runner runs in.

What's the best way to test this MR?

Execute a GitLab CI job with an image that has no grep

What are the relevant issue numbers?

None. Simple fix.

Merge request reports

Loading