aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/assert-changelog.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-26 14:32:32 -0300
committerEuAndreh <eu@euandre.org>2021-08-28 13:23:04 -0300
commitbd17870f8f96580eb5bf97b09d5fa3279eafbc29 (patch)
tree79f103e875799ab180933685ee4dd06c8ba69100 /aux/workflow/assert-changelog.sh
parent_pastebins/: Tweak heading and links of pastebins just because (diff)
downloadeuandre.org-bd17870f8f96580eb5bf97b09d5fa3279eafbc29.tar.gz
euandre.org-bd17870f8f96580eb5bf97b09d5fa3279eafbc29.tar.xz
aux/: Update
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/assert-changelog.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/aux/workflow/assert-changelog.sh b/aux/workflow/assert-changelog.sh
index ca86407..4acc81b 100755
--- a/aux/workflow/assert-changelog.sh
+++ b/aux/workflow/assert-changelog.sh
@@ -52,10 +52,12 @@ assert() {
fi
}
-for VVERSION in $(git tag); do
- DATE="$(git log -1 --format=%cd --date=short "$VVERSION")"
- assert "$DATE" "$VVERSION"
-done
+if [ -e .git ]; then
+ for VVERSION in $(git tag); do
+ DATE="$(git log -1 --format=%cd --date=short "$VVERSION")"
+ assert "$DATE" "$VVERSION"
+ done
+fi
# "$@" represents a list of tags to be also included in the verification.
for VVERSION in "$@"; do