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:
parent
9bd2e9d2e6
commit
5cc894e1e9
2 changed files with 2 additions and 6 deletions
6
cdist/test/fixtures/remote/copy
vendored
6
cdist/test/fixtures/remote/copy
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue