Commit 4e4574c4 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

Fix mkreldate.sh in master to use [-r] test too.

parent 8da2e090
Pipeline #20601987 passed with stages
in 14 minutes and 43 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment