Skip to content

Commit

Permalink
Merge pull request #2521 from openziti/1775-minizitibash-requires-gnu…
Browse files Browse the repository at this point in the history
…-grep

stop requiring GNU grep to run the kubernetes quickstart
  • Loading branch information
qrkourier authored Nov 12, 2024
2 parents 361be18 + c31173a commit ef4ac01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickstart/kubernetes/miniziti.bash
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ validateDnsName(){
logError "validateDnsName() takes one string param"
return 1
fi
if grep -qP '(?=^.{4,253}$)(^(?:[a-zA-Z0-9](?:(?:[a-zA-Z0-9\-]){0,61}[a-zA-Z0-9])?)+[a-zA-Z0-9]$)' <<< "$1"; then
if grep -qE '^[a-zA-Z0-9]([-a-zA-Z0-9]{2,251})[a-zA-Z0-9]$' <<<"$1"; then
logDebug "'$1' is a valid DNS name"
return 0
else
logError "'$1' could not be validated as an unqualified DNS name which is limited to at least four alphanumeric and hyphen characters, starts with a letter, and does not end with a hyphen."
logError "'$1' could not be validated as an unqualified DNS name which is limited to at least four alphanumeric and hyphen characters and does not start nor end with a hyphen."
return 1
fi
}
Expand Down

0 comments on commit ef4ac01

Please sign in to comment.