From cb9e1f867036d5b7cdcde918d3019ef19a21f2b0 Mon Sep 17 00:00:00 2001 From: John Van de Meulebrouck Brendgard Date: Thu, 16 Nov 2023 12:07:10 +0100 Subject: [PATCH] Added shellcheck exceptions for misplaced warning. --- bump-tag | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bump-tag b/bump-tag index 8a9b6e6..74fc23e 100755 --- a/bump-tag +++ b/bump-tag @@ -170,6 +170,7 @@ verify_last_commit() } tag_list="$(git tag -l "${tagpfx}-*")" +# shellcheck disable=SC2181 if [[ ${?} -ne 0 ]] || [[ -z "${tag_list}" ]]; then echo "No tags found, verifying all commits instead." @@ -262,7 +263,10 @@ fi echo -e "\e[1mONLY SIGN IF YOU APPROVE OF VERIFICATION AND DIFF ABOVE\e[0m" -git tag $GITTAGEXTRA -m bump. -s "${this_tag}" +# GITTAGEXTRA is for putting things like "-u 2117364A" +# Note that this variable cannot be quoted if left empty. +# shellcheck disable=SC2086 +git tag ${GITTAGEXTRA} -m bump. -s "${this_tag}" git push git push --tags