+ self variable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
315de6fe15
commit
e7ad5987e4
1 changed files with 3 additions and 3 deletions
|
@ -25,14 +25,14 @@
|
||||||
[ $# -eq 2 ] || __cdist_usage "<object> <type>"
|
[ $# -eq 2 ] || __cdist_usage "<object> <type>"
|
||||||
set -ue
|
set -ue
|
||||||
|
|
||||||
__cdist_object="$1"; shift
|
__cdist_object_self="$1"; shift
|
||||||
__cdist_code_type="$1"; shift
|
__cdist_code_type="$1"; shift
|
||||||
|
|
||||||
if [ ! -d "$(__cdist_object_dir "$__cdist_object")" ]; then
|
if [ ! -d "$(__cdist_object_dir "$__cdist_object_self")" ]; then
|
||||||
__cdist_exit_err "Object undefined"
|
__cdist_exit_err "Object undefined"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
code="$(__cdist_object_code "$__cdist_object")-${__cdist_code_type}"
|
code="$(__cdist_object_code "$__cdist_object_self")-${__cdist_code_type}"
|
||||||
|
|
||||||
__cdist_echo info "Checking code-${__cdist_code_type}"
|
__cdist_echo info "Checking code-${__cdist_code_type}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue