From 53c58b413e32b95bb3f46bfdec80d54ae4c03285 Mon Sep 17 00:00:00 2001 From: John Van de Meulebrouck Brendgard Date: Thu, 16 Nov 2023 11:56:49 +0100 Subject: [PATCH] Changed from if [[ ${?} ]] to if cmd --- bump-tag | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bump-tag b/bump-tag index e4af126..8708935 100755 --- a/bump-tag +++ b/bump-tag @@ -2,9 +2,7 @@ echo "Fetching updates from $(git remote get-url origin) ..." echo "" -git pull --verify-signatures - -if [[ ${?} -ne 0 ]]; then +if ! git pull --verify-signatures; then echo "WARNING: git pull did not exit successfully." echo "" echo "EXITING the script. In order to tag your changes," @@ -183,8 +181,7 @@ else last_tag="$(echo "${tag_list}" | sort | tail -1)" echo "Verifying last tag: ${last_tag} and the commits after that" - git verify-tag "${last_tag}" - if [[ ${?} -ne 0 ]]; then + if ! git verify-tag "${last_tag}"; then check_tag_sig_failure "${last_tag}" fi