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:
parent
43e6db264b
commit
3892f9e713
2 changed files with 8 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue