diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-25 08:26:26 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-25 09:04:01 +0100 |
| commit | f4a4220cd4691e562d0a849ad8900bf54411363b (patch) | |
| tree | 77b808d89ef41ef98987fa143bf6b5546b2d56a6 /src/sub_commands | |
| parent | adc9b8d43d208178269d0f1178255d933ae1c4a5 (diff) | |
fix(init): add missing identifier to yaml
add missing or updated identifier to maintainers.yaml
as we were not checking whether it has changed or added
also update if relays do not match
Diffstat (limited to 'src/sub_commands')
| -rw-r--r-- | src/sub_commands/init.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs index 1c51375..28ba21b 100644 --- a/src/sub_commands/init.rs +++ b/src/sub_commands/init.rs | |||
| @@ -348,8 +348,11 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 348 | // if yaml file doesnt exist or needs updating | 348 | // if yaml file doesnt exist or needs updating |
| 349 | if match &repo_config_result { | 349 | if match &repo_config_result { |
| 350 | Ok(config) => { | 350 | Ok(config) => { |
| 351 | !(extract_pks(config.maintainers.clone())?.eq(&maintainers) | 351 | !<std::option::Option<std::string::String> as Clone>::clone(&config.identifier) |
| 352 | && config.relays.eq(&relays)) | 352 | .unwrap_or_default() |
| 353 | .eq(&identifier) | ||
| 354 | || !extract_pks(config.maintainers.clone())?.eq(&maintainers) | ||
| 355 | || !config.relays.eq(&relays) | ||
| 353 | } | 356 | } |
| 354 | Err(_) => true, | 357 | Err(_) => true, |
| 355 | } { | 358 | } { |