Don't error if already installed with same settings, just warn (#454)
This commit is contained in:
parent
7c9dfacf8e
commit
10732cef68
|
@ -142,8 +142,8 @@ impl CommandExecute for Install {
|
||||||
return Ok(ExitCode::FAILURE)
|
return Ok(ExitCode::FAILURE)
|
||||||
}
|
}
|
||||||
if existing_receipt.actions.iter().all(|v| v.state == ActionState::Completed) {
|
if existing_receipt.actions.iter().all(|v| v.state == ActionState::Completed) {
|
||||||
eprintln!("{}", format!("Found existing plan in `{RECEIPT_LOCATION}`, with the same settings, already completed, try uninstalling (`{uninstall_command}`) and reinstalling if Nix isn't working").red());
|
eprintln!("{}", format!("Found existing plan in `{RECEIPT_LOCATION}`, with the same settings, already completed, try uninstalling (`{uninstall_command}`) and reinstalling if Nix isn't working").yellow());
|
||||||
return Ok(ExitCode::FAILURE)
|
return Ok(ExitCode::SUCCESS)
|
||||||
}
|
}
|
||||||
existing_receipt
|
existing_receipt
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue