Skip to content

Commit c4163b7

Browse files
committed
Fix: scan current directory (.) instead of $REPO path
1 parent b0ea45b commit c4163b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gitscan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ EXCLUDE="--exclude=/.git"
7676
REPO=$(pwd)
7777

7878
echo "Scanning working directory (excluding .git)..."
79-
output=$(/usr/bin/clamscan -ri --no-summary $ADDITIONAL_OPTIONS "$EXCLUDE" "$REPO")
79+
output=$(/usr/bin/clamscan -ri --no-summary $ADDITIONAL_OPTIONS "$EXCLUDE" .)
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)