Skip to content

Commit

Permalink
put possibly failing grep inside if expression
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 12, 2023
1 parent c8e53ce commit 41e4db0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pr_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ jobs:
eb --missing --easystack ${{matrix.EASYSTACK_FILE}} > ${EB_MISSING_OUT} || true
echo "eb done"
echo "grep start"
grep '.* out of .* required modules missing:' ${EB_MISSING_OUT}
exit_code=$?
echo "grep done"
if [[ ${exit_code} -eq 0 ]]; then
if [[ $(grep '.* out of .* required modules missing:' ${EB_MISSING_OUT}) ]]; then
# there may be multiple sections with the above search string
# we grab all lines listing missing modules and print a list of
# unique modules only
Expand Down

0 comments on commit 41e4db0

Please sign in to comment.