enhance for use as function

cdist-deploy-to localhost  1.38s user 1.28s system 69% cpu 3.842 total

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-06-14 01:08:52 +02:00
parent 0e2c221b43
commit 95ce60637c
1 changed files with 0 additions and 2 deletions

View File

@ -27,9 +27,7 @@
__cdist_object_prepare()
{
[ $# -eq 1 ] || __cdist_usage "<object>"
set -eu
__cdist_target_host="$1"; shift
__cdist_object_self="$1"; shift
__cdist_object_dir="$(__cdist_object_dir "$__cdist_object_self")"
[ -d "$__cdist_object_dir" ] || __cdist_exit_err "Object undefined"