PS启动脚本使用LiteralPath避免歧义 (#5388)

close #5387

Co-authored-by: xirren <xirren@outlook.com>
This commit is contained in:
Xirren
2026-02-01 23:06:07 +08:00
committed by GitHub
parent c1d0bb973a
commit 5c2bb1cc25

View File

@@ -692,7 +692,7 @@ public class DefaultLauncher extends Launcher {
writer.write(CommandBuilder.pwshString(entry.getValue())); writer.write(CommandBuilder.pwshString(entry.getValue()));
writer.newLine(); writer.newLine();
} }
writer.write("Set-Location -Path "); writer.write("Set-Location -LiteralPath ");
writer.write(CommandBuilder.pwshString(FileUtils.getAbsolutePath(repository.getRunDirectory(version.getId())))); writer.write(CommandBuilder.pwshString(FileUtils.getAbsolutePath(repository.getRunDirectory(version.getId()))));
writer.newLine(); writer.newLine();