From 0b84c0180c827e8bf7e619f21845199efc3df2f7 Mon Sep 17 00:00:00 2001 From: Dominique RIGHETTO Date: Tue, 1 Nov 2022 16:02:23 +0100 Subject: [PATCH] Fix error --- .bin/check-file-for-starting-slash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.bin/check-file-for-starting-slash b/.bin/check-file-for-starting-slash index 1f82e2ad..0c6c7001 100644 --- a/.bin/check-file-for-starting-slash +++ b/.bin/check-file-for-starting-slash @@ -1,7 +1,11 @@ #!/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" -for modified_file in modified_files +for modified_file in $modified_files do echo "[+] Check $modified_file ..." matches=$(grep -cE '^/[a-zA-Z0-9\._]+' $modified_file)