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>
This commit is contained in:
Steven Armstrong 2013-10-03 09:55:14 +02:00
parent 9bd2e9d2e6
commit 5cc894e1e9
2 changed files with 2 additions and 6 deletions

View file

@ -18,10 +18,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with cdist. If not, see <http://www.gnu.org/licenses/>. # 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 cp --dereference $code

View file

@ -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 cp --dereference $code