forked from ungleich-public/cdist
ABORT if explorer fails, not only WARN
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
02a2d39ebf
commit
62c4f0d086
1 changed files with 4 additions and 4 deletions
|
@ -57,16 +57,16 @@ for explorer in "$__cdist_explorer_dir/"*; do
|
||||||
|
|
||||||
if [ -f "$explorer" ]; then
|
if [ -f "$explorer" ]; then
|
||||||
if [ ! -x "$explorer" ]; then
|
if [ ! -x "$explorer" ]; then
|
||||||
echo "Explorer \"$explorer\" exists, but is not executable."
|
echo "Explorer \"$explorer\" exists, but is not executable." >&2
|
||||||
continue
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute explorers and save results in remote destination directory
|
# Execute explorers and save results in remote destination directory
|
||||||
"$explorer" > "${__cdist_my_out_dir}/$explorer_name"
|
"$explorer" > "${__cdist_my_out_dir}/$explorer_name"
|
||||||
else
|
else
|
||||||
if [ -e "$explorer" ]; then
|
if [ -e "$explorer" ]; then
|
||||||
echo "Explorer \"$explorer\" exists, but is not a file."
|
echo "Explorer \"$explorer\" exists, but is not a file." >&2
|
||||||
continue
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue