mirror of
https://github.com/danielmiessler/SecLists
synced 2025-12-27 03:04:27 +01:00
Update and rename check-file-for starting-slash to check-file-for-starting-slash
This commit is contained in:
parent
cbf9e0ff56
commit
e8c5a5346b
2 changed files with 12 additions and 9 deletions
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Script to verify if a file contain any entries starting with a slash and show a warning into the github action result UI.
|
||||
modified_file=$1
|
||||
echo "[+] Check $modified_file ..."
|
||||
matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)
|
||||
if [ $matches -ne 0 ]
|
||||
then
|
||||
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::$matches entries start with a slash."
|
||||
fi
|
||||
12
.bin/check-file-for-starting-slash
Normal file
12
.bin/check-file-for-starting-slash
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
#Script to verify if a file contain any entries starting with a slash and show a warning into the github action result UI.
|
||||
modified_files="$1"
|
||||
for modified_file in modified_files
|
||||
do
|
||||
echo "[+] Check $modified_file ..."
|
||||
matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)
|
||||
if [ $matches -ne 0 ]
|
||||
then
|
||||
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::$matches entries start with a slash."
|
||||
fi
|
||||
done
|
||||
Loading…
Reference in a new issue