Skip to content

Commit

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

Resolves #995
  • Loading branch information
imerljak committed May 8, 2024
1 parent 6a90eac commit 297fa4a
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 297fa4a

Please sign in to comment.