Skip to content

Commit

Permalink
use suggested profile syntax (#1031)
Browse files Browse the repository at this point in the history
Fixes issues with bash/zsh special meaning to ! symbol.

Resolves #995

Co-authored-by: Jinbo Wang <[email protected]>
  • Loading branch information
imerljak and testforstephen authored Nov 12, 2024
1 parent 8a1a442 commit ac5a616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/mavenUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export async function executeInTerminal(options: {
if (pomfile) {
const project = MavenProjectManager.get(pomfile);
const selectedIds = project?.profiles?.filter(p => p.selected === true)?.map(p => p.id) ?? [];
const unselectedIds = project?.profiles?.filter(p => p.selected === false)?.map(p => `!${p.id}`) ?? [];
const unselectedIds = project?.profiles?.filter(p => p.selected === false)?.map(p => `-${p.id}`) ?? [];
if (selectedIds.length + unselectedIds.length > 0) {
profileOptions = "-P " + selectedIds.concat(unselectedIds).join(",");
profileOptions = "-P=" + selectedIds.concat(unselectedIds).join(",");
}
}
const fullCommand: string = [
Expand Down

0 comments on commit ac5a616

Please sign in to comment.