World4You using _egrep_o instead of grep -E

This commit is contained in:
Lorenz Stechauner committed 2020-11-29 11:48:08 +01:00
1 parent a0edb8f2ad
commit 35cab4ee73
1 file changed
+1 -1
+1 -1
View File
@@ -169,7 +169,7 @@ _get_paketnr() {
fqdn="$1"
form="$2"
domains=$(echo "$form" | _ggrep -E '^\s*([A-Za-z0-9_-]+\.)+[A-Za-z0-9_-]*$' | sed 's/^\s*\(\S*\)$/\1/')
domains=$(echo "$form" | _egrep_o '^\s*([A-Za-z0-9_-]+\.)+[A-Za-z0-9_-]*$' | sed 's/^\s*\(\S*\)$/\1/')
domain=''
for domain in $domains; do
if echo "$fqdn" | grep -q "$domain\$"; then
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.