From 1fade61683f88eea776d85899fae40bd92245741 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 19 Jul 2017 19:11:08 +0200 Subject: [PATCH] copy: Make function handle paths with spaces Signed-off-by: Michael Tremer --- src/functions/functions.util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3