mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
docker extend build bash script working
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user