bunkerweb/scripts/clamav.sh
2020-04-11 22:01:21 +02:00

10 lines
171 B
Bash

#!/bin/sh
output=$(clamscan -i --no-summary "$1" 2> /dev/null)
if echo "$output" | grep -q ".* FOUND$" ; then
echo "0 clamscan: $output"
else
echo "1 clamscan: ok"
fi