Skip to content

Commit

Permalink
Prevent error log if no file was created
Browse files Browse the repository at this point in the history
In case no report is created, there is an error message which is not useful :
`ls: cannot access 'build/sanitizer_report*': No such file or directory`
This case is treated in the else condition already.
  • Loading branch information
gr0vity-dev committed Aug 18, 2023
1 parent 1c592e8 commit fde04eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/code_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
(
issue_reported=false
reports=$(ls build/sanitizer_report*)
reports=$(ls build/sanitizer_report* 2>/dev/null)
if [[ -n "${reports}" ]]; then
echo "Report Output:"
for report in ${reports}; do
Expand Down

0 comments on commit fde04eb

Please sign in to comment.