++__cdist_echo

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-06 20:52:14 +02:00
parent ec513eae49
commit 8924a9583d
2 changed files with 5 additions and 1 deletions

View file

@ -175,6 +175,10 @@ __cdist_echo()
error) error)
echo $__cdist_echo_prefix "Error: $@" >&2 echo $__cdist_echo_prefix "Error: $@" >&2
;; ;;
*)
echo "CORE BUG, who created the broken commit?" >&2
exit 23
;;
esac esac
} }

View file

@ -40,7 +40,7 @@ if [ "$__cdist_has_explorer" ]; then
if ! __cdist_type_explorer_pushed "$__cdist_type"; then if ! __cdist_type_explorer_pushed "$__cdist_type"; then
src_dir="$(__cdist_type_explorer_dir "$__cdist_type")" src_dir="$(__cdist_type_explorer_dir "$__cdist_type")"
dst_dir="$(__cdist_remote_type_explorer_dir "$__cdist_type")" dst_dir="$(__cdist_remote_type_explorer_dir "$__cdist_type")"
echo "Transfering explorers for $__cdist_type ..." __cdist_echo info "Transfering explorers for $__cdist_type ..."
cdist-dir push "$__cdist_target_host" "$src_dir" "$dst_dir" cdist-dir push "$__cdist_target_host" "$src_dir" "$dst_dir"
__cdist_type_explorer_pushed_add "$__cdist_type" __cdist_type_explorer_pushed_add "$__cdist_type"
fi fi