Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect.sh: avoid logging an error if there are no core dumps #1028

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

petrutlucian94
Copy link
Contributor

The inspect.sh script will log an error if the core dump dir is empty. We'll add a check to improve the user experience.

INFO: Copy dmesg entries
INFO: Collecting core dumps from /var/crash. Size: 4.0K /var/crash
cp: cannot stat '/var/crash/*': No such file or directory
Collecting snap and related information

The inspect.sh script will log an error if the core dump dir
is empty. We'll add a check to improve the user experience.

   INFO:  Copy dmesg entries
   INFO:  Collecting core dumps from /var/crash. Size: 4.0K    /var/crash
   cp: cannot stat '/var/crash/*': No such file or directory
   Collecting snap and related information
@petrutlucian94 petrutlucian94 requested a review from a team as a code owner January 31, 2025 19:12
Copy link
Contributor

@eaudetcobello eaudetcobello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace `` with $() and then lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants