Browse Source

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>
2.3
Steven Armstrong 9 years ago
parent
commit
5cc894e1e9
  1. 6
      cdist/test/fixtures/remote/copy
  2. 2
      other/examples/remote/local/copy

6
cdist/test/fixtures/remote/copy vendored

@ -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

2
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

Loading…
Cancel
Save