Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtme-ng-init: always check return code when executing bash
Fix the following warning: warning: unused return value of `exec` that must be used --> src/main.rs:978:13 | 978 | Command::new("bash").arg("-l").exec(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default Moreover, check the return code in case exec() fails and log an explicit error before exiting. Signed-off-by: Andrea Righi <[email protected]>
- Loading branch information