just fixes
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s
This commit is contained in:
@@ -60,9 +60,10 @@ while true; do
|
||||
break
|
||||
fi
|
||||
|
||||
# Validate hostname
|
||||
if [[ ! "$hostname" =~ ^[a-zA-Z0-9][a-zA-Z0-9-_.]*$ ]]; then
|
||||
# Validate hostname - allow simple names, must start with alphanumeric
|
||||
if [[ ! "$hostname" =~ ^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$ ]]; then
|
||||
echo -e "${RED}Invalid hostname format. Use only letters, numbers, dots, dashes, and underscores.${NC}"
|
||||
echo -e "${RED}Hostname must start and end with a letter or number.${NC}"
|
||||
continue
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user