summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-01-28 18:09:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2015-01-28 18:09:20 +0100
commit27265a14a0c66970dc59924fc83e4d22f279e2d6 (patch)
treea527fa1c8e599690f01f3d5fcac82126e8fb2d7b /src
parent1aac79d9617431bbaf218f9a9d270929762d2816 (diff)
downloadpass-27265a14a0c66970dc59924fc83e4d22f279e2d6.tar.gz
pass-27265a14a0c66970dc59924fc83e4d22f279e2d6.tar.bz2
pass-27265a14a0c66970dc59924fc83e4d22f279e2d6.zip
Bad code is bad.
Diffstat (limited to '')
-rw-r--r--src/platform/cygwin.sh6
1 files 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