#!/bin/sh

# shellcheck disable=SC1090
# shellcheck disable=SC2034
# shellcheck disable=SC2154

# audit_netrc_files
#
# Check netrc files
#
# Refer to Section(s) 6.2.12-3 Page(s) 264-6  CIS Amazon Linux Benchmark v2.0.0
# Refer to Section(s) 6.2.12-3 Page(s) 278-80 CIS Ubuntu 16.04 Benchmark v1.0.0
#.

audit_netrc_files () {
  print_function "audit_netrc_files"
  string="Netrc Files"
  check_message  "${string}"
  if [ "${os_name}" = "SunOS" ] || [ "${os_name}" = "Linux" ]; then
    audit_dot_files ".netrc"
  else
    na_message "${string}"
  fi
}
