File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,18 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
77
88pushd " ${SCRIPT_DIR} /.."
99
10- grep -oP ' [^/]+\.yml(?=/badge.svg)' " ${readme_file} " || (>&2 echo " No badges in ${readme_file} " ; exit 1) | while read -r workflow_file; do
10+ ( grep -oP ' [^/]+\.yml(?=/badge.svg)' " ${readme_file} " || (echo " No badges in ${readme_file} " ; exit 1) ) | while read -r workflow_file; do
1111 path_to_workflow=" .github/workflows/${workflow_file} "
1212 if [ ! -e " ${path_to_workflow} " ]
1313 then
14- >&2 echo " Error, workflow does not exist \" ${path_to_workflow} \" "
14+ echo " Error, workflow does not exist \" ${path_to_workflow} \" "
1515 exit 1
1616 fi
1717done
1818
19- grep -oP ' [^/]+\.yml/badge.svg(?!\?branch=main)' " ${readme_file} " || echo | while read -r badge_without_branch; do
19+ ( grep -oP ' [^/]+\.yml/badge.svg(?!\?branch=main)' " ${readme_file} " || echo ) | while read -r badge_without_branch; do
2020 if [ -z " ${badge_without_branch} " ]; then continue ; fi
21- >&2 echo " Badge without branch \" ${badge_without_branch} \" "
21+ echo " Badge without branch \" ${badge_without_branch} \" "
2222 exit 1
2323done
2424
You can’t perform that action at this time.
0 commit comments