From: Phil Pennock Date: Wed, 5 Oct 2011 04:26:33 +0000 (-0400) Subject: test for .git dir with -d not -e; more portable X-Git-Tag: exim-4_77_RC3~2 X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/1abf359cf07b59ac99e45c1cefd81c4b5edb312d?hp=28c6059071a8c9db89aa34c70e9a4b0dc4000f26 test for .git dir with -d not -e; more portable --- 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.