Skip to content

Commit

Permalink
Merge pull request #220 from arighi/vng-init-fix-exec-warning
Browse files Browse the repository at this point in the history
virtme-ng-init: always check return code when executing bash
  • Loading branch information
arighi authored Jan 23, 2025
2 parents f1c27d9 + 89ea3b1 commit ad68078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtme_ng_init/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,8 @@ fn setup_user_session() {
Some(console) => console,
None => {
log!("failed to determine console");
Command::new("bash").arg("-l").exec();
let err = Command::new("bash").arg("-l").exec();
log!("failed to exec bash: {}", err);
return;
}
};
Expand Down

0 comments on commit ad68078

Please sign in to comment.