mirror of
https://github.com/danielmiessler/SecLists
synced 2025-12-15 21:34:10 +01:00
Update check-file-for-starting-slash
This commit is contained in:
parent
2522c0e676
commit
d29e1b281e
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,8 @@ modified_files="$1"
|
|||
for modified_file in $modified_files
|
||||
do
|
||||
echo "[+] Check $modified_file ..."
|
||||
matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)
|
||||
matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)
|
||||
echo "Entries identified starting with a slash: matches"
|
||||
if [ $matches -ne 0 ]
|
||||
then
|
||||
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::$matches entries start with a slash."
|
||||
|
|
|
|||
Loading…
Reference in a new issue