m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorLenz Weber <mail@lenzw.de>2015-05-11 12:45:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2015-05-11 14:03:39 +0200
commited1adea7dc85c11ced1328b45224669f47840a1c (patch)
treea739c113d239d64b74fb7dc059229d7dd9e34ad2 /src/platform
parent0ccb898021f8838ba3bc8ed0a256899f9b571a81 (diff)
critcal fix for cygwin: gpg output to stdout ("gpg -o -") would have been putput to a file named "-"
Diffstat (limited to 'src/platform')
-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 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