diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-02 02:19:39 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-02 02:19:39 -0400 |
commit | 7082cc0798ba101fa596ff066e97290fb5f988f0 (patch) | |
tree | 095debefe8fe014dba597d9029dae29f2020b620 | |
parent | switch from old `let` to newer `: $((...))` syntax (diff) | |
download | build-docbook-catalog-7082cc0798ba101fa596ff066e97290fb5f988f0.tar.gz build-docbook-catalog-7082cc0798ba101fa596ff066e97290fb5f988f0.tar.bz2 build-docbook-catalog-7082cc0798ba101fa596ff066e97290fb5f988f0.zip |
use `grep -E` instead of `egrep`
This makes shellcheck happy and is easy enough to do.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | build-docbook-catalog | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog index 669cbf8..495de64 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -221,7 +221,7 @@ create_catalogs() { clean_catalog() { local list f regex=$1 catalog=${ROOT}$2 - list=$(egrep --only-matching "${regex}" "${catalog}" | sort -u) + list=$(grep -E --only-matching "${regex}" "${catalog}" | sort -u) for f in ${list}; do xmlcatalog --noout --del "${f}" "${catalog}" done @@ -265,7 +265,7 @@ populate_dtd() { verb " No entities available for ${dtd}" return 0 fi - dtd_date=$(egrep --only-matching --max-count=1 \ + dtd_date=$(grep -E --only-matching --max-count=1 \ '[0-9]{4}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}' \ "${ROOT}${dtd}") if [[ -z ${dtd_date} ]]; then |