Skip to content

Commit

Permalink
Update ffuf count logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chvancooten committed Dec 15, 2023
1 parent b36dc74 commit fb33ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BugBountyScanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ do
find . -type f -size -1c -delete

# Count the number of files (lines in the ffuf files, excluding the header row for each file) and sum into variable
ffufFiles=$(find . -type f -exec wc -l {} + | awk '{sum+=$1} END{print sum}')
ffufFiles=$(find . -type f -exec wc -l {} + | sed '$d' | awk '{sum+=$1-1} END{print sum}')

if [ "$ffufFiles" -gt 0 ]
then
Expand Down

0 comments on commit fb33ea1

Please sign in to comment.