add support for __cdist_type_mydir to find dir of current type

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-07 17:50:25 +01:00
commit 3892f9e713
2 changed files with 8 additions and 1 deletions

View file

@ -33,6 +33,7 @@ set -eu
echo "I am $__cdist_myname and have been called with $@"
export __cdist_object_id="$1"; shift
export __cdist_type_current="$__cdist_myname"
echo "$__cdist_object_id" | grep -q "^${__cdist_sane_regexp}\$" || __cdist_usage "Provide sane id, please"