From 11c8d0038fff4d20b62cd4918910a05835fe73e0 Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Thu, 7 Apr 2022 17:18:10 -0600 Subject: [PATCH] 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. --- new_python_tool.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_python_tool.sh b/new_python_tool.sh index ad426c2..e007482 100755 --- a/new_python_tool.sh +++ b/new_python_tool.sh @@ -58,7 +58,7 @@ new_python_tool() { fi [ -z "$1" ] && echo "Usage: new_python_tool " && return 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 fi