Skip to content

Commit 38aa0d1

Browse files
committed
Fix: remove EXCLUDE from initial scan (matches original behavior)
1 parent c4163b7 commit 38aa0d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gitscan.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ fi
7575
EXCLUDE="--exclude=/.git"
7676
REPO=$(pwd)
7777

78-
echo "Scanning working directory (excluding .git)..."
79-
output=$(/usr/bin/clamscan -ri --no-summary $ADDITIONAL_OPTIONS "$EXCLUDE" .)
78+
echo "Scanning working directory..."
79+
output=$(/usr/bin/clamscan -ri --no-summary $ADDITIONAL_OPTIONS .)
8080
if echo "$output" | grep -q "FOUND"; then
8181
echo "Found malicious file in ref $(git rev-parse HEAD)" | tee -a /output.txt
8282
echo "$output" | tee -a /output.txt

0 commit comments

Comments
 (0)