Skip to content

Commit

Permalink
create: Do not allow only numbers in name
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Jan 21, 2025
1 parent 342087c commit d4d747d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/local/share/bastille/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d4d747d

Please sign in to comment.