Skip to content

Commit

Permalink
Merge pull request #847 from mchf/replaced_egrep
Browse files Browse the repository at this point in the history
Replaced egrep with grep -E
  • Loading branch information
mchf committed Sep 9, 2022
2 parents ec5b643 + 6267f73 commit 48f133e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions package/autoyast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 9 08:29:55 UTC 2022 - Michal Filka <mfilka@suse.com>

- bsc#1203227
- Replaced egrep with grep -E.
- 4.5.4

-------------------------------------------------------------------
Fri Jul 22 11:31:20 UTC 2022 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/autoyast2.spec
Expand Up @@ -22,7 +22,7 @@
%endif

Name: autoyast2
Version: 4.5.3
Version: 4.5.4
Release: 0
Summary: YaST2 - Automated Installation
License: GPL-2.0-only
Expand Down
6 changes: 3 additions & 3 deletions test_xml/cc.xml
Expand Up @@ -122,9 +122,9 @@
LOC="/tmp/cc-package-uri"
$(echo "$VAL" | egrep -q "^http://") || \
$(echo "$VAL" | egrep -q "^ftp://") || \
$(echo "$VAL" | egrep -q "^file:///") && \
$(echo "$VAL" | grep -q "^http://") || \
$(echo "$VAL" | grep -q "^ftp://") || \
$(echo "$VAL" | grep -q "^file:///") && \
{
echo "$VAL" > $LOC
exit 0
Expand Down
2 changes: 1 addition & 1 deletion test_xml/cobbler.xml
Expand Up @@ -951,7 +951,7 @@ echo "jo" > /tmp/post-run
<source><![CDATA[
#!/bin/sh
if echo "$VAL" | egrep '^[1-9][0-9]{0,3}$' > /dev/null; then
if echo "$VAL" | grep -E '^[1-9][0-9]{0,3}$' > /dev/null; then
sed -e "s/%NODE%/${VAL}/g" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
echo "Completed editing profile as node number $VAL."
exit 0
Expand Down

0 comments on commit 48f133e

Please sign in to comment.