diff options
author | EuAndreh <eu@euandre.org> | 2021-08-21 05:49:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-21 05:49:05 -0300 |
commit | de2c1beae4690626597b50abdba9feb38a5be5f7 (patch) | |
tree | 2f9df5267b7f85436c28f02a7eff036ed8b21f5b /aux/workflow/assert-changelog.sh | |
parent | src/tests-lib.c: Move testing helper function and share it with other files (diff) | |
download | gistatic-de2c1beae4690626597b50abdba9feb38a5be5f7.tar.gz gistatic-de2c1beae4690626597b50abdba9feb38a5be5f7.tar.xz |
aux/: Update
Diffstat (limited to 'aux/workflow/assert-changelog.sh')
-rwxr-xr-x | aux/workflow/assert-changelog.sh | 10 |
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 |