From 5cc894e1e9b32e4d1c869fa92ffd7ac1b4043abe Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Thu, 3 Oct 2013 09:55:14 +0200
Subject: [PATCH] only use a single space to distinguish between the actual
 __target_host and the same used as part of the path; fixes #206

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 cdist/test/fixtures/remote/copy  | 6 +-----
 other/examples/remote/local/copy | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/cdist/test/fixtures/remote/copy b/cdist/test/fixtures/remote/copy
index 57369b53..a4627716 100755
--- a/cdist/test/fixtures/remote/copy
+++ b/cdist/test/fixtures/remote/copy
@@ -18,10 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with cdist. If not, see <http://www.gnu.org/licenses/>.
 #
-#
-# This is based on other/examples/remote/local/, but uses --dereference for the
-# test cases
-#
 
-code="$(echo "$@" | sed "s|\([[:space:]]+\)$__target_host:|\1|g")"
+code="$(echo "$@" | sed "s|\([[:space:]]\)$__target_host:|\1|g")"
 cp --dereference $code
diff --git a/other/examples/remote/local/copy b/other/examples/remote/local/copy
index 0ddc44c8..0cec3643 100755
--- a/other/examples/remote/local/copy
+++ b/other/examples/remote/local/copy
@@ -20,5 +20,5 @@
 #
 #
 
-code="$(echo "$@" | sed "s|\([[:space:]]+\)$__target_host:|\1|g")"
+code="$(echo "$@" | sed "s|\([[:space:]]\)$__target_host:|\1|g")"
 cp --dereference $code