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 10 years ago
parent 9bd2e9d2e6
commit 5cc894e1e9

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

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