summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-22 18:34:23 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-22 18:34:23 -0400
commit9c0e1f70df2de45b6b4d0525b64f517ff2533e1b (patch)
treecf3a8ed59671de4a3e9b5791706e5a496f5d7bab /src
parent4c08929538733d5a76a663f2d48a980103b2223c (diff)
Fix librefetch to quote correctly with Bash 4.3
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 4f2d788..fdc7e00 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -160,8 +160,8 @@ main() {
local dlcmd="${DOWNLOADER}"
[[ $dlcmd = *%u* ]] || dlcmd="$dlcmd %u"
- dlcmd="${dlcmd//\%o/"\$dst"}"
- dlcmd="${dlcmd//\%u/"\$src"}"
+ dlcmd="${dlcmd//\%o/\"\$dst\"}"
+ dlcmd="${dlcmd//\%u/\"\$src\"}"
{ eval "$dlcmd"; } >&2 && return 0
fi