Skip to content

Commit 5c2bb1c

Browse files
authored
PS启动脚本使用LiteralPath避免歧义 (#5388)
close #5387 Co-authored-by: xirren <xirren@outlook.com>
1 parent c1d0bb9 commit 5c2bb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HMCLCore/src/main/java/org/jackhuang/hmcl/launch/DefaultLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ else if (!isWindows && !(scriptExtension.equals("sh") || scriptExtension.equals(
692692
writer.write(CommandBuilder.pwshString(entry.getValue()));
693693
writer.newLine();
694694
}
695-
writer.write("Set-Location -Path ");
695+
writer.write("Set-Location -LiteralPath ");
696696
writer.write(CommandBuilder.pwshString(FileUtils.getAbsolutePath(repository.getRunDirectory(version.getId()))));
697697
writer.newLine();
698698

0 commit comments

Comments
 (0)