+ self variable

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.6
Nico Schottelius 14 years ago
parent 315de6fe15
commit e7ad5987e4
  1. 6
      bin/cdist-code-run

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

Loading…
Cancel
Save