Add ability to disable remotes
This commit is contained in:
16
src/main.rs
16
src/main.rs
@@ -132,13 +132,15 @@ fn run() -> Result<(), Error> {
|
||||
execute(&mut report, "WSL", || windows::run_wsl_topgrade(run_type), true)?;
|
||||
|
||||
if let Some(topgrades) = config.remote_topgrades() {
|
||||
for remote_topgrade in topgrades {
|
||||
execute(
|
||||
&mut report,
|
||||
remote_topgrade,
|
||||
|| generic::run_remote_topgrade(run_type, remote_topgrade, config.run_in_tmux()),
|
||||
config.no_retry(),
|
||||
)?;
|
||||
if config.should_run(Step::Remotes) {
|
||||
for remote_topgrade in topgrades {
|
||||
execute(
|
||||
&mut report,
|
||||
remote_topgrade,
|
||||
|| generic::run_remote_topgrade(run_type, remote_topgrade, config.run_in_tmux()),
|
||||
config.no_retry(),
|
||||
)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user