From cbfcd01d4fff773e1e2824cc526869e682915d85 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 17 Nov 2011 21:51:50 +0100 Subject: [PATCH] ++bugfix Signed-off-by: Steven Armstrong --- other/examples/remote/schroot-uri | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/other/examples/remote/schroot-uri b/other/examples/remote/schroot-uri index 06dce369..a23277ec 100755 --- a/other/examples/remote/schroot-uri +++ b/other/examples/remote/schroot-uri @@ -49,7 +49,7 @@ my_name="${0##*/}" mode="$1"; shift log() { - #echo "$@" | logger -t "cdist-$my_name-$mode" + echo "$@" | logger -t "cdist-$my_name-$mode" : } @@ -112,7 +112,9 @@ fi case "$mode" in exec) - code="$exec_prefix schroot -c $schroot_name -- $@" + # In exec mode the first argument is the __target_host which we already got from env. Get rid of it. + shift + code="$exec_prefix schroot -c $schroot_name -- sh -c '$@'" ;; copy) # get directory for given chroot_name