Oops. Dashes aren't allowed.

Changed project name enforcement to underscores from dashes. How did I miss this? Surely this will come back to bite me later.
This commit is contained in:
Daniel Dayley 2022-04-07 17:18:10 -06:00 committed by GitHub
parent 62b90c8f9e
commit 11c8d0038f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ new_python_tool() {
fi fi
[ -z "$1" ] && echo "Usage: new_python_tool <name_of_tool>" && return 1 [ -z "$1" ] && echo "Usage: new_python_tool <name_of_tool>" && return 1
NAME="$1" NAME="$1"
if [[ $(echo "$1" | sed 's#^[a-z0-9\-]*$##' ) == "$NAME" ]]; then if [[ $(echo "$1" | sed 's#^[a-z0-9\_]*$##' ) == "$NAME" ]]; then
echo "Tool name '""$NAME""' is invalid." && return 1 echo "Tool name '""$NAME""' is invalid." && return 1
fi fi