Al Bailey 1763064edc Fix password masking by collect for gzipped files
The zgrep syntax for a regex search was incorrect.
The -E argument is required.

This meant that if a gzipped file (ie: bash.log.gz)
was included in a collect, then its passwords would
not be redacted.

Closes-Bug: 1981101

Test Plan:
 Verify that a gzipped bash log has its password
 redacted when running collect on CentOS and Debian.

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I497813949b65137a93a91bf58ede2c591fb15f62
2022-07-08 20:15:19 +00:00
..
2021-10-08 09:19:15 -04:00