Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
fixes: #228
  • Loading branch information
extremeshok committed Jul 31, 2019
1 parent 9929e7b commit c4f429b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ Usage: clamav-unofficial-sigs.sh [OPTION] [PATH|FILE]
its associated files and databases from the system

## Change Log
### Version 6.0.1 (Updated 30 July 2019)
- eXtremeSHOK.com Maintenance
- Fix logging @dominicraf

### Version 6.0 (Updated 30 July 2019)
### Version 6.0 (30 July 2019)
- eXtremeSHOK.com Maintenance & Refactoring
- Add timestamp support (do not re-download not modified files, saves bandwidth)
- wget and curl uses compression for the transfer (detected when supported, saves bandwidth)
Expand Down
6 changes: 3 additions & 3 deletions clamav-unofficial-sigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function xshok_pretty_echo_and_log() { # "string" "repeating" "count" "type"
# Handle logging
if [ "$enable_log" == "yes" ] ; then
if [ ! -z "$log_pipe_cmd" ] ; then
echo "${1}" | "$log_pipe_cmd"
echo "${1}" | $log_pipe_cmd
else
if [ ! -e "${log_file_path}/${log_file_name}" ] ; then
# xshok_mkdir_ownership "$log_file_path"
Expand Down Expand Up @@ -1309,7 +1309,7 @@ EOF
################################################################################

# Script Info
script_version="6.0.0"
script_version="6.0.1"
script_version_date="2019-07-30"
minimum_required_config_version="75"
minimum_yara_clamav_version="0.99"
Expand Down Expand Up @@ -2314,7 +2314,7 @@ if [ "$sanesecurity_enabled" == "yes" ] ; then
fi
else
xshok_pretty_echo_and_log "Sanesecurity Database File Updates" "="
xshok_draw_time_remaining "$((update_interval - time_interval))" "$sanesecurity_update_hours" "sanesecurity"
xshok_draw_time_remaining "$((update_interval - time_interval))" "$sanesecurity_update_hours" "Sanesecurity"
fi
fi
fi
Expand Down

0 comments on commit c4f429b

Please sign in to comment.