Changed from [[ ! -z ... to [[ -n ...
This commit is contained in:
parent
53c58b413e
commit
826b8edf82
6
bump-tag
6
bump-tag
|
@ -30,7 +30,7 @@ fi
|
||||||
# 1. $tag, if specified in cosmos.conf,
|
# 1. $tag, if specified in cosmos.conf,
|
||||||
# 2. or $deftag, as specified above.
|
# 2. or $deftag, as specified above.
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if [[ ! -z "${tag}" ]]; then
|
if [[ -n "${tag}" ]]; then
|
||||||
tagpfx="${tag}"
|
tagpfx="${tag}"
|
||||||
else
|
else
|
||||||
tagpfx="${deftag}"
|
tagpfx="${deftag}"
|
||||||
|
@ -144,7 +144,7 @@ verify_last_commit()
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$(git status --porcelain "${__file_to_verify}")" ]]; then
|
if [[ -n "$(git status --porcelain "${__file_to_verify}")" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "INFO: local changes detected in ${__file_to_verify},"
|
echo "INFO: local changes detected in ${__file_to_verify},"
|
||||||
echo "Not checking the signature of the last commit to ${__file_to_verify}."
|
echo "Not checking the signature of the last commit to ${__file_to_verify}."
|
||||||
|
@ -199,7 +199,7 @@ else
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "${git_log}" ]]; then
|
if [[ -n "${git_log}" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "------WARNING: unsigned or untrusted commits after the last tag------"
|
echo -e "------WARNING: unsigned or untrusted commits after the last tag------"
|
||||||
echo "${git_log}"
|
echo "${git_log}"
|
||||||
|
|
Loading…
Reference in a new issue