From af3b815c91a35cc8a6054bba64ceb1f4a71b9649 Mon Sep 17 00:00:00 2001 From: Lorenz Weber Date: Mon, 11 May 2015 12:59:18 +0200 Subject: enhance winpath detection: gpg --help will have a line like this: Home: C:\..... --- 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 b7339f4..6e5dd86 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 -- cgit v1.2.3