docker extend build bash script working

This commit is contained in:
2024-07-21 17:52:33 -07:00
parent 0c4bb4a289
commit 2bd83096a8
33 changed files with 547 additions and 189 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# Function to get user input for project name
get_project_name() {
while true; do
read -p "Enter project name (usually the domain name, like www-example-com): " HLPR_PROJECTNAME
if [[ "$HLPR_PROJECTNAME" =~ ^[a-zA-Z0-9-]+$ ]]; then
break
else
echo "Invalid project name. Please use only letters, numbers, and dashes. No spaces allowed."
fi
done
}