1 |
commit: 7082cc0798ba101fa596ff066e97290fb5f988f0 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 2 06:19:39 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 2 06:19:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=7082cc07 |
7 |
|
8 |
use `grep -E` instead of `egrep` |
9 |
|
10 |
This makes shellcheck happy and is easy enough to do. |
11 |
|
12 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
13 |
|
14 |
build-docbook-catalog | 4 ++-- |
15 |
1 file changed, 2 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/build-docbook-catalog b/build-docbook-catalog |
18 |
index 669cbf8..495de64 100755 |
19 |
--- a/build-docbook-catalog |
20 |
+++ b/build-docbook-catalog |
21 |
@@ -221,7 +221,7 @@ create_catalogs() { |
22 |
clean_catalog() { |
23 |
local list f regex=$1 catalog=${ROOT}$2 |
24 |
|
25 |
- list=$(egrep --only-matching "${regex}" "${catalog}" | sort -u) |
26 |
+ list=$(grep -E --only-matching "${regex}" "${catalog}" | sort -u) |
27 |
for f in ${list}; do |
28 |
xmlcatalog --noout --del "${f}" "${catalog}" |
29 |
done |
30 |
@@ -265,7 +265,7 @@ populate_dtd() { |
31 |
verb " No entities available for ${dtd}" |
32 |
return 0 |
33 |
fi |
34 |
- dtd_date=$(egrep --only-matching --max-count=1 \ |
35 |
+ dtd_date=$(grep -E --only-matching --max-count=1 \ |
36 |
'[0-9]{4}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}' \ |
37 |
"${ROOT}${dtd}") |
38 |
if [[ -z ${dtd_date} ]]; then |