|
|
|
@ -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}" |
|
|
|
|
|
|
|
|
|