-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When helping debug someone's shell scripts what used iio_attr on Friday, we noticed that iio_attr just plain eats too many things, which makes it hard to debug things when using -q (quiet). So, make sure to print things when errors occur. Errors are now defined as attempting to read/write a device/channel/buffer/attribute that doesn't exist. or when a write error occurs. Also exit with an exit error code, so that if you set -e in a shell script, it quits right away. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
1 changed file
with
103 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters