[pass] [PATCH] critcal fix for cygwin: gpg output to stdout ("gpg -o -") would have been output to a file named "-"
Lenz Weber
mail at lenzw.de
Mon May 11 12:56:34 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..fac68fa 100644
--- a/src/platform/cygwin.sh
+++ b/src/platform/cygwin.sh
@@ -22,7 +22,7 @@ gpg_winpath() {
local could_be_filenames="true"
local i
for ((i=${#args[@]}-1; i>=0; i--)); do
- if ( [ $i -gt 0 ] && [ "${args[$i-1]}" = "-o" ] ); then
+ if ( [ $i -gt 0 ] && [ "${args[$i-1]}" = "-o" ] && [ "$args[$i]" != "-" ] ); then
args[$i]="$(cygpath -am "${args[$i]}")"
elif [ $could_be_filenames = "true" ]; then
if [ -e "${args[$i]}" ]; then
--
1.9.5.msysgit.1
More information about the Password-Store
mailing list