Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 3f502c1

Browse files
alexarchambaultsoc
authored andcommitted
Pass -NoProfile to powershell.exe
1 parent 18224a5 commit 3f502c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/dev/dirs/Util.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ static String[] getWinDirs(String... guids) {
151151

152152
return runCommands(guidsLength, Charset.forName("UTF-8"),
153153
"powershell.exe",
154+
"-NoProfile",
154155
"-EncodedCommand",
155156
encodedCommand
156157
);

0 commit comments

Comments
 (0)