diff options
author | EuAndreh <eu@euandre.org> | 2021-08-20 19:04:44 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-20 19:11:15 -0300 |
commit | 8079e4ee6612c587be24e10c40936e3a750c4096 (patch) | |
tree | 48222da4aa1019369893fbd9e5bf3377f05fe968 /aux/workflow/assert-changelog.sh | |
parent | TODOs.md: Add #task-e8d9a644-ead4-af05-8582-eef22af90633 (diff) | |
download | git-permalink-8079e4ee6612c587be24e10c40936e3a750c4096.tar.gz git-permalink-8079e4ee6612c587be24e10c40936e3a750c4096.tar.xz |
aux/workflow/repocheck.sh: Run dev-check, adapt scripts that depend on Git repo
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 |