Commit 1987c327 authored by Lorenz Stechauner's avatar Lorenz Stechauner
Browse files

World4You using _egrep_o instead of grep -E

parent 0ed26596
...@@ -169,7 +169,7 @@ _get_paketnr() { ...@@ -169,7 +169,7 @@ _get_paketnr() {
fqdn="$1" fqdn="$1"
form="$2" 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='' domain=''
for domain in $domains; do for domain in $domains; do
if echo "$fqdn" | grep -q "$domain\$"; then if echo "$fqdn" | grep -q "$domain\$"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment