diff options
| author | LostNeophyte <[email protected]> | 2023-02-14 08:23:41 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-14 08:23:41 +0100 | 
| commit | 9b4c4ab6afa33782a0068f009d11e2b3fa1cb1a2 (patch) | |
| tree | f1b978162d0073e2517f848044924b38cb29a524 /utils | |
| parent | fde46c4b163dfeb51407efdc2929cfc723fd15c6 (diff) | |
fix: win installer syntax error (#3635)
* feat: check version
* fix
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/installer/install.ps1 | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1 index db1427e5..09b229ee 100644 --- a/utils/installer/install.ps1 +++ b/utils/installer/install.ps1 @@ -1,5 +1,8 @@  #Requires -Version 7.1  $ErrorActionPreference = "Stop" # exit when command fails +if ($PSVersionTable.PSVersion -lt 7.1) { +    Write-Error "Powershell version needs to be greater than 7.1!" +}  # set script variables  $LV_BRANCH = $LV_BRANCH ?? "master" @@ -231,7 +234,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 { | 
