Skip to content

Commit a945077

Browse files
localdenCopilot
andauthored
Update scripts/bash/create-new-feature.sh
Co-authored-by: Copilot <[email protected]>
1 parent 4522fb4 commit a945077

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/bash/create-new-feature.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ while [ $i -lt $# ]; do
1313
JSON_MODE=true
1414
;;
1515
--short-name)
16+
if [ $((i + 1)) -ge $# ]; then
17+
echo 'Error: --short-name requires a value' >&2
18+
exit 1
19+
fi
1620
i=$((i + 1))
1721
SHORT_NAME="${!i}"
1822
;;

0 commit comments

Comments
 (0)