Skip to content

Commit cfbb78f

Browse files
committed
fix(linux): 修正.bashrc路径拼接方式
使用Join-Path替代硬编码路径拼接,提高跨平台兼容性
1 parent a2ae35b commit cfbb78f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linux/04installApps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (-not (Test-EXEProgram -Name 'bun')) {
1515
npm install -g nrm --registry='https://registry.npmmirror.com'
1616
nrm use taobao
1717
npm install -g bun
18-
$bashrcPath = ~/.bashrc
18+
$bashrcPath = Join-Path $HOME '.bashrc'
1919
# 确保.bashrc文件存在
2020
# if (-not (Test-Path $bashrcPath)) {
2121
# New-Item -Path $bashrcPath -ItemType File -Force | Out-Null

0 commit comments

Comments
 (0)