From ed1adea7dc85c11ced1328b45224669f47840a1c Mon Sep 17 00:00:00 2001 From: Lenz Weber Date: Mon, 11 May 2015 12:45:53 +0200 Subject: critcal fix for cygwin: gpg output to stdout ("gpg -o -") would have been putput to a file named "-" --- src/platform/cygwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platform') diff --git a/src/platform/cygwin.sh b/src/platform/cygwin.sh index 106562a..b7339f4 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 -- cgit v1.2.3