Created
May 1, 2017 18:15
-
-
Save devinnasar/c9633ed1d7ec62a04d6695948bca83ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_collect_soc_workpaper_files() { | |
_id="${1}" | |
declare -a _source_file_paths=("${!2}") | |
_dest_file_path="${3}" | |
_id_dest_path="${_dest_file_path}/${_id}" | |
mkdir "${_id_dest_path}" | |
for _path in "${_source_file_paths[@]}"; do | |
cp -a "${_path}" "${_id_dest_path}" | |
done | |
} | |
# 3301.01 | |
3301_01_files=( | |
'/etc/clamd.d/scan.conf' | |
'/etc/freshclam.conf' | |
) | |
_collect_soc_workpaper_files "3301_01" 3301_01_files[@] "${_host_today_working_dir}" | |
# Errors | |
./system_health.sh: line 70: syntax error near unexpected token `newline' | |
./system_health.sh: line 70: `3301_01_files=(' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment