From d29e1b281e2393c778b52c497c48569cb75dc47e Mon Sep 17 00:00:00 2001 From: Dominique RIGHETTO Date: Tue, 1 Nov 2022 16:05:09 +0100 Subject: [PATCH] Update check-file-for-starting-slash --- .bin/check-file-for-starting-slash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bin/check-file-for-starting-slash b/.bin/check-file-for-starting-slash index 0c6c7001..b7f042b4 100644 --- a/.bin/check-file-for-starting-slash +++ b/.bin/check-file-for-starting-slash @@ -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."