diff options
author | Wayne Davison <wayne@opencoder.net> | 2022-09-20 21:50:07 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2022-09-20 21:50:07 -0700 |
commit | c8c627756a607818fd92ac603ea63dcab6da33ef (patch) | |
tree | baef3735387c3399dc9d2947e5896a63de832f86 | |
parent | 46884e4ff665db1756ed20313c48f5ae4c2bf185 (diff) | |
download | rsync-c8c627756a607818fd92ac603ea63dcab6da33ef.tar.gz |
Avoid test -e.
-rwxr-xr-x | mkgitver | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ if [ ! -f git-version.h ]; then touch git-version.h fi -if [ -e "$srcdir/.git" ]; then +if test -d "$srcdir/.git" || test -f "$srcdir/.git"; then gitver=`git describe --abbrev=8 2>/dev/null | sed -n '/^v3\.[0-9][0-9]*\.[0-9][0-9]*\(-\|$\)/p'` if [ -n "$gitver" ]; then echo "#define RSYNC_GITVER \"$gitver\"" >git-version.h.new |