From: Kevin McCarthy Date: Mon, 16 Apr 2018 23:32:33 +0000 (-0700) Subject: Fix mkreldate.sh in master to use [-r] test too. X-Git-Tag: mutt-1-10-rel~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e4574c413ce7eac8cc665383fecbe8c57f89ccf;p=mutt Fix mkreldate.sh in master to use [-r] test too. --- diff --git a/mkreldate.sh b/mkreldate.sh index 121363ea..b9be6373 100755 --- a/mkreldate.sh +++ b/mkreldate.sh @@ -2,7 +2,7 @@ # # Generates the reldate.h contents from either git or the ChangeLog file -if [ -e ".git" ] && command -v git >/dev/null 2>&1; then +if [ -r ".git" ] && command -v git >/dev/null 2>&1; then reldate=$(TZ=UTC git log -1 --date=format-local:"%F" --pretty=format:"%cd") else reldate=$(head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1)