fixed computer name regex

This commit is contained in:
Marvin Roman 2021-11-22 12:31:25 -08:00
parent 3963aa1476
commit c42bdf3ce4
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