[exim-cvs] test for .git dir with -d not -e; more portable

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Assunto: [exim-cvs] test for .git dir with -d not -e; more portable
Gitweb: http://git.exim.org/exim.git/commitdiff/1abf359cf07b59ac99e45c1cefd81c4b5edb312d
Commit:     1abf359cf07b59ac99e45c1cefd81c4b5edb312d
Parent:     28c6059071a8c9db89aa34c70e9a4b0dc4000f26
Author:     Phil Pennock <pdp@???>
AuthorDate: Wed Oct 5 00:26:33 2011 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Wed Oct 5 00:26:33 2011 -0400


    test for .git dir with -d not -e; more portable
---
 src/scripts/reversion |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/scripts/reversion b/src/scripts/reversion
index ad83fe5..97b8874 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.