mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-25 23:10:33 +01:00
create: Do not allow only numbers in name
This commit is contained in:
@@ -68,6 +68,8 @@ validate_name() {
|
||||
error_exit "Container names may not begin with (-|_) characters!"
|
||||
elif [ "${NAME_VERIFY}" != "${NAME_SANITY}" ]; then
|
||||
error_exit "Container names may not contain special characters!"
|
||||
elif echo "${NAME_VERIFY}" | grep -qE '^[0-9]+$'; then
|
||||
error_exit "Container names may not contain only numbers."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user