mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-08-12 16:57:40 +00:00
Fix error
This commit is contained in:
committed by
GitHub
parent
03fcf37318
commit
0b84c0180c
@@ -1,7 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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.
|
# Script to verify if a file contain any entries starting with a slash and show a warning into the github action result UI.
|
||||||
|
# Received as input a list of file paths to check separated by a space.
|
||||||
|
# More precisely the result of the "tj-actions/changed-files" github action.
|
||||||
|
## References:
|
||||||
|
# See https://github.com/tj-actions/changed-files
|
||||||
modified_files="$1"
|
modified_files="$1"
|
||||||
for modified_file in modified_files
|
for modified_file in $modified_files
|
||||||
do
|
do
|
||||||
echo "[+] Check $modified_file ..."
|
echo "[+] Check $modified_file ..."
|
||||||
matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)
|
matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user