Jelajahi Sumber

fix(installer): fix syntax error with powershell installer (#2875)

Jonathan Cooper 2 tahun lalu
induk
melakukan
e40a1149ed
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      utils/installer/install.ps1

+ 1 - 1
utils/installer/install.ps1

@@ -231,7 +231,7 @@ function setup_lvim() {
 function validate_lunarvim_files() {
 function validate_lunarvim_files() {
     Set-Alias lvim "$INSTALL_PREFIX\bin\lvim.ps1"
     Set-Alias lvim "$INSTALL_PREFIX\bin\lvim.ps1"
     try {
     try {
-        $verify_version_cmd='if v:errmsg != "" | cquit | else | quit | endif'
+        $verify_version_cmd="if v:errmsg != \`"\`" | cquit | else | quit | endif"
         Invoke-Command -ScriptBlock { lvim --headless -c 'LvimUpdate' -c "$verify_version_cmd" } -ErrorAction SilentlyContinue
         Invoke-Command -ScriptBlock { lvim --headless -c 'LvimUpdate' -c "$verify_version_cmd" } -ErrorAction SilentlyContinue
     }
     }
     catch {
     catch {