commit 27265a14a0c66970dc59924fc83e4d22f279e2d6 parent 1aac79d9617431bbaf218f9a9d270929762d2816 Author: Jason A. Donenfeld <Jason@zx2c4.com> Date: Wed, 28 Jan 2015 18:09:20 +0100 Bad code is bad. Diffstat:
M | src/platform/cygwin.sh | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/platform/cygwin.sh b/src/platform/cygwin.sh @@ -23,10 +23,10 @@ gpg_winpath() { local i for ((i=${#args[@]}-1; i>=0; i--)); do if ( [ $i -gt 0 ] && [ "${args[$i-1]}" = "-o" ] ); then - args[$i]=$(cygpath -am ${args[$i]}) + args[$i]="$(cygpath -am "${args[$i]}")" elif [ $could_be_filenames = "true" ]; then - if [ -e ${args[$i]} ]; then - args[$i]=$(cygpath -am ${args[$i]}) + if [ -e "${args[$i]}" ]; then + args[$i]="$(cygpath -am "${args[$i]}")" else could_be_filenames="false" fi