We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9c8c46 commit 06e8ee4Copy full SHA for 06e8ee4
1 file changed
check_message.sh
@@ -2,11 +2,9 @@
2
3
set -eu
4
5
-OPTIONS=$(getopt --longoptions no-jira,allow-temp,jira-in-header,header-length:,body-length:,jira-types: --options "" -- "$@")
6
unset COMMIT_VALIDATOR_ALLOW_TEMP COMMIT_VALIDATOR_NO_JIRA COMMIT_VALIDATOR_NO_REVERT_SHA1 GLOBAL_JIRA_IN_HEADER GLOBAL_MAX_LENGTH GLOBAL_BODY_MAX_LENGTH GLOBAL_JIRA_TYPES
7
8
-eval set -- $OPTIONS
9
-while true; do
+while [[ $# -gt 0 ]]; do
10
case "$1" in
11
--no-jira ) COMMIT_VALIDATOR_NO_JIRA=1; shift ;;
12
--allow-temp ) COMMIT_VALIDATOR_ALLOW_TEMP=1; shift ;;
0 commit comments