Skip to content

Commit

Permalink
only extend services when adding new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Jun 17, 2024
1 parent af1b13c commit 29da86f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions command/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ fn setup(mut config: Config, first_setup: bool) -> std::io::Result<()> {
.map(ToString::to_string)
.collect();

let mut profiles: Vec<String> = config.compose_profiles.take().unwrap_or_default().clone();
profiles.extend(selected_profiles);
let mut profiles: Vec<String> = selected_profiles;
if !first_setup {
profiles.extend(config.compose_profiles.unwrap_or_default());
}
profiles.sort();
profiles.dedup();

Expand Down

0 comments on commit 29da86f

Please sign in to comment.