Skip to content

Commit

Permalink
update API output
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Sep 13, 2024
1 parent cfe8099 commit 0595ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ if site_200 https://dl.miyuru.lk/geoip/maxmind/country/maxmind"$1".dat.gz
then
curl_to_dir https://dl.miyuru.lk/geoip/maxmind/country maxmind"$1".dat.gz /tmp
# Scan file for virus
if ! metadefender-scan /tmp/maxmind"$1".dat.gz | grep '"scan_all_result_i":0,"current_av_result_i":0,"'
if ! metadefender-scan /tmp/maxmind"$1".dat.gz | grep '"scan_all_result_a":"No Threat Detected","current_av_result_a":"No Threat Detected"'
then
msg_box "Potential threat found in .dat file! Please report this to $ISSUES. We will now delete the file!"
rm -f /tmp/maxmind"$1".dat.gz
Expand Down

0 comments on commit 0595ffc

Please sign in to comment.