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:
parent
62b90c8f9e
commit
11c8d0038f
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user