summaryrefslogtreecommitdiff
path: root/src/scripts/reversion
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2011-10-05 00:26:33 -0400
committerPhil Pennock <pdp@exim.org>2011-10-05 00:26:33 -0400
commit1abf359cf07b59ac99e45c1cefd81c4b5edb312d (patch)
tree1f403af297948e9932d3fad07d7901d13a5f6bf8 /src/scripts/reversion
parent28c6059071a8c9db89aa34c70e9a4b0dc4000f26 (diff)
test for .git dir with -d not -e; more portable
Diffstat (limited to 'src/scripts/reversion')
-rwxr-xr-xsrc/scripts/reversion2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/reversion b/src/scripts/reversion
index ad83fe564..97b8874a5 100755
--- a/src/scripts/reversion
+++ b/src/scripts/reversion
@@ -32,7 +32,7 @@ fi
# If this tree is a git working directory, use that to get version information.
-if [ -e ../../.git ] || [ "$1" = "release" ]
+if [ -d ../../.git ] || [ "$1" = "release" ]
then
# Modify the output of git describe into separate parts for
# the name "exim" and the release and variant versions.