plugin_name=$1 check_record=$2 updateerrors=0 if [[ -z "$check_record" ]]; then logerr "ERROR: Need to provide a DNS record or file to look-up" exit 1 else if [[ -r "$check_record" ]]; then for d in $(getRecords "$check_record"); do check-update 4 "$check_record" if [[ $? -ne 0 ]]; then let updateerrors++ fi done else check-update 4 "$check_record" if [[ $? -ne 0 ]]; then let updateerrors++ fi fi fi exit $updateerrors