From 27265a14a0c66970dc59924fc83e4d22f279e2d6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 28 Jan 2015 18:09:20 +0100 Subject: Bad code is bad. --- src/platform/cygwin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/cygwin.sh b/src/platform/cygwin.sh index e0a90c7..106562a 100644 --- 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 -- cgit v1.2.3