Added shellcheck exceptions for misplaced warning.

This commit is contained in:
John Van de Meulebrouck Brendgard 2023-11-16 12:07:10 +01:00
parent 5a47b1a3f7
commit cb9e1f8670
No known key found for this signature in database
GPG key ID: 807A5FD4B3337B77

View file

@ -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