From c42bdf3ce4d192df98cbc57c442b8392186ff3f2 Mon Sep 17 00:00:00 2001 From: Marvin Roman Date: Mon, 22 Nov 2021 12:31:25 -0800 Subject: [PATCH] fixed computer name regex --- 1-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-setup.sh b/1-setup.sh index 4f49f28..0d88d8c 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -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