|
|
|
@ -55,16 +55,14 @@ for explorer in "$__cdist_explorer_dir/"*; do |
|
|
|
|
|
|
|
|
|
if [ -f "$explorer" ]; then |
|
|
|
|
if [ ! -x "$explorer" ]; then |
|
|
|
|
echo "Explorer \"$explorer\" exists, but is not executable." >&2 |
|
|
|
|
exit 1 |
|
|
|
|
__cdist_exit_err "Explorer \"$explorer\" exists, but is not executable." |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Execute explorers and save results in remote destination directory |
|
|
|
|
"$explorer" > "${__cdist_my_out_dir}/$explorer_name" |
|
|
|
|
else |
|
|
|
|
if [ -e "$explorer" ]; then |
|
|
|
|
echo "Explorer \"$explorer\" exists, but is not a file." >&2 |
|
|
|
|
exit 1 |
|
|
|
|
__cdist_exit_err "Explorer \"$explorer\" exists, but is not a file." |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|