From: Michael Tremer Date: Wed, 19 Jul 2017 17:11:08 +0000 (+0200) Subject: copy: Make function handle paths with spaces X-Git-Tag: 009~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fade61683f88eea776d85899fae40bd92245741;p=network.git copy: Make function handle paths with spaces Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.util b/src/functions/functions.util index 8c8f5691..3f943e8d 100644 --- a/src/functions/functions.util +++ b/src/functions/functions.util @@ -761,7 +761,7 @@ copy() { local dst=${2} # Check if ${dst} is a directory - if [ -d ${dst} ]; then + if [ -d "${dst}" ]; then log ERROR "${dst} is a directory." return ${EXIT_ERROR} fi