commit:     7082cc0798ba101fa596ff066e97290fb5f988f0
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  2 06:19:39 2021 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Oct  2 06:19:39 2021 +0000
URL:        
https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=7082cc07

use `grep -E` instead of `egrep`

This makes shellcheck happy and is easy enough to do.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 build-docbook-catalog | 4 ++--
 1 file 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

Reply via email to