3 ### Run a collection of everyday health checks.
18 min=$(fix ${1-0}) max=$(fix ${2-99})
22 for check in check.d/[!#]*[!~]; do
25 if [ $min -gt $seq -o $seq -gt $max ]; then continue; fi
29 { { { set +e; "$check"; rc=$?; set -e
31 case $rc in 0) ;; *) echo >&2 "failed (rc = $rc)" ;; esac
35 if IFS= read -r line; then
36 echo "## ${check##*/}"
43 if [ $nrc -gt $rc ]; then rc=$nrc; fi