tested fix for computer name regex

This commit is contained in:
Marvin Roman 2021-11-22 13:57:13 -08:00
parent c42bdf3ce4
commit 5360593666
No known key found for this signature in database
GPG Key ID: AE99B800E0ED6CCC
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ then
do
read -p "Please name your machine:" nameofmachine
# hostname regex (!!couldn't find spec for computer name!!)
if [[ "${nameofmachine,,}" =~ ^[a-z][a-z0-9-_.]{0,62}[a-z0-9]$ ]]
if [[ "${nameofmachine,,}" =~ ^[a-z][a-z0-9_.-]{0,62}[a-z0-9]$ ]]
then
break
fi