From 9bdb715b7d3b75b733db15a4198576a96d936719 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 6 Nov 2012 16:42:18 +0100 Subject: [PATCH] ensure all parameters for exec are executed Signed-off-by: Nico Schottelius --- other/examples/remote/local/copy | 1 - other/examples/remote/local/exec | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/other/examples/remote/local/copy b/other/examples/remote/local/copy index 475155da..644fee15 100755 --- a/other/examples/remote/local/copy +++ b/other/examples/remote/local/copy @@ -24,5 +24,4 @@ src=$1; shift dst=$1; shift dst=$(echo $dst | sed "s/^${__target_host}://") - cp "$recursive" "$src" "$dst" diff --git a/other/examples/remote/local/exec b/other/examples/remote/local/exec index ac658313..838513a9 100755 --- a/other/examples/remote/local/exec +++ b/other/examples/remote/local/exec @@ -18,12 +18,6 @@ # along with cdist. If not, see . # # -# same as cdist default -# -# Usage: -# cdist config --remote-exec "/path/to/this/script" target_host -# target_host=$1; shift -# echo "Executing $@ (for $target_host)" -/bin/sh -c "$@" +echo "$@" | /bin/sh