[pass] [PATCH] enhance winpath detection: gpg --help will have a line like this: Home: C:\.....

Lorenz Weber mail at lenzw.de
Mon May 11 12:59:18 CEST 2015


---
 src/platform/cygwin.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/platform/cygwin.sh b/src/platform/cygwin.sh
index 106562a..a36a9cd 100644
--- a/src/platform/cygwin.sh
+++ b/src/platform/cygwin.sh
@@ -35,7 +35,7 @@ gpg_winpath() {
 	$GPG_ORIG "${args[@]}"
 }

-if $GPG --help | grep -q Gpg4win; then
+if $GPG --help | grep -q 'Home: [A-Z]:[/\\]'; then
 	GPG_ORIG="$GPG"
 	GPG=gpg_winpath
 fi
-- 
1.9.5.msysgit.1



More information about the Password-Store mailing list