mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
feat: loop on failed command after successful install
This commit is contained in:
parent
b117875352
commit
abed3be3ee
1 changed files with 4 additions and 1 deletions
|
|
@ -145,7 +145,10 @@ pub fn cnf(data: &mut Data) {
|
|||
|
||||
// retry after installing package
|
||||
if system::install_package(data, &package_manager, &package) {
|
||||
let _ = suggestions::run_suggestion(data, &data.command);
|
||||
let status = suggestions::run_suggestion(data, &data.command);
|
||||
if !status.success() {
|
||||
data.update_error(None);
|
||||
suggestion(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue