From 826b8edf827838bf035ad57f6e424a304bd9bdc2 Mon Sep 17 00:00:00 2001 From: John Van de Meulebrouck Brendgard Date: Thu, 16 Nov 2023 11:59:33 +0100 Subject: [PATCH] Changed from [[ ! -z ... to [[ -n ... --- bump-tag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bump-tag b/bump-tag index 8708935..2c06d7e 100755 --- a/bump-tag +++ b/bump-tag @@ -30,7 +30,7 @@ fi # 1. $tag, if specified in cosmos.conf, # 2. or $deftag, as specified above. # shellcheck disable=SC2154 -if [[ ! -z "${tag}" ]]; then +if [[ -n "${tag}" ]]; then tagpfx="${tag}" else tagpfx="${deftag}" @@ -144,7 +144,7 @@ verify_last_commit() return 1 fi - if [[ ! -z "$(git status --porcelain "${__file_to_verify}")" ]]; then + if [[ -n "$(git status --porcelain "${__file_to_verify}")" ]]; then echo "" echo "INFO: local changes detected in ${__file_to_verify}," echo "Not checking the signature of the last commit to ${__file_to_verify}." @@ -199,7 +199,7 @@ else fi -if [[ ! -z "${git_log}" ]]; then +if [[ -n "${git_log}" ]]; then echo "" echo -e "------WARNING: unsigned or untrusted commits after the last tag------" echo "${git_log}"