Skip to content

Commit 4f556f0

Browse files
committed
fix(template.sh): fix limit counter bug
1 parent 89daaad commit 4f556f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

template.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ printf " • no dot (.) at the end\n\n"
6565

6666
while :; do
6767
read -e short_desc
68-
limit_counter=${#short_desc}
6968
if [ -z "$short_desc" ]; then
7069
printf "${RED}❌ Short description can not be empty.${RESET}\n"
71-
elif [[ $limit_counter > 50 ]]; then
70+
elif [[ ${#limit_counter} -gt 50 ]]; then
7271
printf "${RED}❌ The maximum character for header is 50, Please\
7372
provide details in long descriptions.${RESET}\n"
7473
else

0 commit comments

Comments
 (0)