mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-29 19:10:42 +01:00
ci: Add antivirus check with clamav scan.
This commit is contained in:
1 parent
21e97d4e30
commit
d541becb1a
2 files changed
+36
No files matched your search
Executable
+16
@@ -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
|
||||
Reference in new issue
Block a user