ci: Add antivirus check with clamav scan.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-02 11:23:39 +01:00
1 parent 21e97d4e30
commit d541becb1a
2 files changed
+36

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#! /bin/bash
set +x
OPTS="-r -a"
FILES="../windows/pamhyr-windows.exe ../windows/pamhyr-windows.zip ../linux/pamhyr-gnulinux.tar.xz"
clamscan $OPTS $FILES | tee clamav.log
RES=$(cat clamav.log | grep "Infected files: 0")
if [ -z "$RES" ]; then
echo "Infected files"
exit -1
else
echo "OK"
exit 0
fi