password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit ed1adea7dc85c11ced1328b45224669f47840a1c
parent 0ccb898021f8838ba3bc8ed0a256899f9b571a81
Author: Lenz Weber <mail@lenzw.de>
Date:   Mon, 11 May 2015 12:45:53 +0200

critcal fix for cygwin: gpg output to stdout ("gpg -o -") would have been putput to a file named "-"

Diffstat:
Msrc/platform/cygwin.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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