浏览代码

fix(installer): use quotes in set-alias (#3408)

Tommy Au 2 年之前
父节点
当前提交
f0ed89d17c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/installer/install.ps1

+ 1 - 1
utils/installer/install.ps1

@@ -271,7 +271,7 @@ function create_alias {
         New-Item -Path $PROFILE -ItemType "file" -Force
     }
 
-    Add-Content -Path $PROFILE -Value $("`r`nSet-Alias lvim $lvim_bin")
+    Add-Content -Path $PROFILE -Value $("`r`nSet-Alias lvim '$lvim_bin'")
 
     Write-Host 'To use the new alias in this window reload your profile with: `. $PROFILE`' -ForegroundColor Green
 }