Skip to content

Commit

Permalink
Prevent ls command from logging an error
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`
  • Loading branch information
gr0vity-dev committed Jul 15, 2023
1 parent f9d526c commit 0078039
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 0078039

Please sign in to comment.