manjaro / mdd

Manjaro Data Donor - WIP
MIT License
12 stars 3 forks source link

fix: send error messages to /dev/null for dmi cat cmds #3

Closed philmmanjaro closed 2 weeks ago

philmmanjaro commented 2 weeks ago

On ARM devices dmi doesn't exist. We can silent the error output by sending them to /dev/null. See also #1 and https://github.com/manjaro/mdd/pull/2

romangg commented 2 weeks ago

Instead of silencing potential errors making debugging harder in the future, we should check for the file being there and otherwise not try to cat it.

romangg commented 2 weeks ago

As far as I see @fhdk added such a check already in #2. Let's continue there.