Commit 59213c4e authored by sand's avatar sand

check if gawk is installed before proceding

parent 64a3ee49
......@@ -3,6 +3,11 @@
bindir=/usr/share/ai-offlinescan/
rootdir=${1:-/home/disastro/backup/ai/ring0}
gawk --version > /dev/null 2>&1 || {
echo "Error: you need GNU awk (gawk) to run this script" 1>&2
exit 1
}
${bindir}/incremental-virus-scan.sh ${rootdir}/* \
| xargs -0 clamscan --no-summary --stdout --infected \
| ${bindir}/parse-scan-output.py \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment