Skip to content

Commit 74f7e50

Browse files
authored
Change loop condition to include last argument
The last argument is not processed. e.g. create-new-feature.sh -h doesn't show the help information.
1 parent 3b000fc commit 74f7e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bash/create-new-feature.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ JSON_MODE=false
66
SHORT_NAME=""
77
ARGS=()
88
i=0
9-
while [ $i -lt $# ]; do
9+
while [ $i -le $# ]; do
1010
arg="${!i}"
1111
case "$arg" in
1212
--json)
@@ -197,4 +197,4 @@ else
197197
echo "SPEC_FILE: $SPEC_FILE"
198198
echo "FEATURE_NUM: $FEATURE_NUM"
199199
echo "SPECIFY_FEATURE environment variable set to: $BRANCH_NAME"
200-
fi
200+
fi

0 commit comments

Comments
 (0)