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

This commit is contained in:
Jonathan Cooper 2022-11-14 05:13:24 -05:00
parent d668598ff2
commit e40a1149ed

View file

@ -231,7 +231,7 @@ function setup_lvim() {
function validate_lunarvim_files() {
Set-Alias lvim "$INSTALL_PREFIX\bin\lvim.ps1"
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
}
catch {