Permalink
Browse files

ensure all parameters for exec are executed

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
  • Loading branch information...
1 parent 43061dc commit 9bdb715b7d3b75b733db15a4198576a96d936719 Nico Schottelius committed Nov 6, 2012
Showing with 1 addition and 8 deletions.
  1. +0 −1 other/examples/remote/local/copy
  2. +1 −7 other/examples/remote/local/exec
@@ -24,5 +24,4 @@ src=$1; shift
dst=$1; shift
dst=$(echo $dst | sed "s/^${__target_host}://")
-
cp "$recursive" "$src" "$dst"
@@ -18,12 +18,6 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
#
-# 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

0 comments on commit 9bdb715

Please sign in to comment.