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

This commit is contained in:
Jonathan Cooper 2022-11-14 05:13:24 -05:00 committed by GitHub
parent 8474a06b43
commit e9c43ca9b3
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

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 {