diff --git a/check_message.sh b/check_message.sh index 45a4369..ef238ce 100755 --- a/check_message.sh +++ b/check_message.sh @@ -2,11 +2,9 @@ set -eu -OPTIONS=$(getopt --longoptions no-jira,allow-temp,jira-in-header,header-length:,body-length:,jira-types: --options "" -- "$@") 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 -eval set -- $OPTIONS -while true; do +while [[ $# -gt 0 ]]; do case "$1" in --no-jira ) COMMIT_VALIDATOR_NO_JIRA=1; shift ;; --allow-temp ) COMMIT_VALIDATOR_ALLOW_TEMP=1; shift ;;