code, not gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f08a9eaaa9
commit
d000de2be9
1 changed files with 4 additions and 4 deletions
|
@ -26,20 +26,20 @@
|
|||
set -ue
|
||||
|
||||
__cdist_object="$1"; shift
|
||||
__cdist_gencode_type="$1"; shift
|
||||
__cdist_code_type="$1"; shift
|
||||
|
||||
if [ ! -d "$(__cdist_object_dir "$__cdist_object")" ]; then
|
||||
__cdist_exit_err "Object $__cdist_object is missing."
|
||||
fi
|
||||
|
||||
code="$(__cdist_object_code "$__cdist_object")-${__cdist_gencode_type}"
|
||||
code="$(__cdist_object_code "$__cdist_object")-${__cdist_code_type}"
|
||||
|
||||
__cdist_echo info "Checking code-${__cdist_gencode_type}"
|
||||
__cdist_echo info "Checking code-${__cdist_code_type}"
|
||||
|
||||
if [ -e "$code" ]; then
|
||||
if [ -f "$code" ]; then
|
||||
if [ -x "$code" ]; then
|
||||
echo "Executing code-${__cdist_gencode_type} for $__cdist_object ..."
|
||||
echo "Executing code-${__cdist_code_type} for $__cdist_object ..."
|
||||
__cdist_exec_fail_on_error "$code"
|
||||
else
|
||||
__cdist_exit_err "$code exists, but is not executable."
|
||||
|
|
Loading…
Reference in a new issue