From 8079e4ee6612c587be24e10c40936e3a750c4096 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 20 Aug 2021 19:04:44 -0300 Subject: aux/workflow/repocheck.sh: Run dev-check, adapt scripts that depend on Git repo --- aux/workflow/assert-changelog.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'aux/workflow/assert-changelog.sh') 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 -- cgit v1.2.3