]> granicus.if.org Git - mutt/commitdiff
Fix mkreldate.sh in master to use [-r] test too.
authorKevin McCarthy <kevin@8t8.us>
Mon, 16 Apr 2018 23:32:33 +0000 (16:32 -0700)
committerKevin McCarthy <kevin@8t8.us>
Mon, 16 Apr 2018 23:32:33 +0000 (16:32 -0700)
mkreldate.sh

index 121363ea0071e390c6758e9a7b15fb36d91bdb53..b9be6373d5d88bfda2a2bd85507afe338c827f0d 100755 (executable)
@@ -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)