Skip to content

Commit abeb1e8

Browse files
amondnetCopilot
andauthored
Update scripts/bash/create-new-feature.sh
Co-authored-by: Copilot <[email protected]>
1 parent d9c4d8c commit abeb1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/bash/create-new-feature.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ while [[ $# -gt 0 ]]; do
99
case "$1" in
1010
--json) JSON_MODE=true; shift ;;
1111
--feature-num)
12-
if [[ -z "$2" || "$2" =~ ^- ]]; then
12+
if [[ -z "$2" || "$2" == -* ]]; then
1313
echo "Error: --feature-num requires a number (1-999)" >&2
1414
exit 1
1515
fi

0 commit comments

Comments
 (0)