forked from ungleich-public/cdist
use __cdist_exec_fail_on_error in bin/cdist-code-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
08d18ec1ec
commit
813b4e1f2b
3 changed files with 11 additions and 9 deletions
|
|
@ -40,7 +40,7 @@ if [ -e "$code" ]; then
|
|||
if [ -f "$code" ]; then
|
||||
if [ -x "$code" ]; then
|
||||
echo "Executing code-${__cdist_gencode_type} for $__cdist_object ..."
|
||||
"$code"
|
||||
__cdist_exec_fail_on_error "$code"
|
||||
else
|
||||
__cdist_exit_err "$code exists, but is not executable."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue