summaryrefslogtreecommitdiff
path: root/src/platform/cygwin.sh
diff options
context:
space:
mode:
authorLorenz Weber <mail@lenzw.de>2015-05-11 12:59:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2015-05-11 14:36:28 +0200
commitaf3b815c91a35cc8a6054bba64ceb1f4a71b9649 (patch)
tree074cb09621d88168e596662978cb5ce526b61bc2 /src/platform/cygwin.sh
parenta619988f7986d72f4e0ac7256ce48596df6a2a34 (diff)
downloadpass-af3b815c91a35cc8a6054bba64ceb1f4a71b9649.tar.gz
pass-af3b815c91a35cc8a6054bba64ceb1f4a71b9649.tar.bz2
pass-af3b815c91a35cc8a6054bba64ceb1f4a71b9649.zip
enhance winpath detection: gpg --help will have a line like this: Home: C:\.....
Diffstat (limited to '')
-rw-r--r--src/platform/cygwin.sh2
1 files changed, 1 insertions, 1 deletions
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