m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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