+ self variable

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-06 21:43:32 +02:00
parent 315de6fe15
commit e7ad5987e4
1 changed files with 3 additions and 3 deletions

View File

@ -25,14 +25,14 @@
[ $# -eq 2 ] || __cdist_usage "<object> <type>"
set -ue
__cdist_object="$1"; shift
__cdist_object_self="$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"
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}"