diff options
author | kylo252 <[email protected]> | 2022-02-12 09:17:34 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-02-12 09:17:34 +0100 |
commit | ff9d883f64b75cb36f3164aae9d36a372f8b46d7 (patch) | |
tree | 27f496c5d814fde1bb5950f5580ed476f7fa02d1 /utils/installer/install.ps1 | |
parent | 2fa176f23fb8dffbafbac6a1f5e34c1f9c79c3f7 (diff) | |
parent | 564798b83e40e622fb5c1b6f3803b80f42d092ec (diff) |
Merge branch 'rolling'
Diffstat (limited to 'utils/installer/install.ps1')
-rw-r--r-- | utils/installer/install.ps1 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1 index 0823032a..526239bb 100644 --- a/utils/installer/install.ps1 +++ b/utils/installer/install.ps1 @@ -1,3 +1,4 @@ +#Requires -Version 7.1 $ErrorActionPreference = "Stop" # exit when command fails # set script variables @@ -139,9 +140,10 @@ function check_system_deps() { } function install_nodejs_deps() { + $dep = "node" try { - check_system_dep "node" - Invoke-Command npm install -g neovim tree-sitter-cli -ErrorAction Break + check_system_dep "$dep" + Invoke-Command -ScriptBlock { npm install --global neovim tree-sitter-cli } -ErrorAction Break } catch { print_missing_dep_msg "$dep" @@ -149,9 +151,10 @@ function install_nodejs_deps() { } function install_python_deps() { + $dep = "pip" try { - check_system_dep "pip" - Invoke-Command python -m pip install --user pynvim -ErrorAction Break + check_system_dep "$dep" + Invoke-Command -ScriptBlock { python -m pip install --user pynvim } -ErrorAction Break } catch { print_missing_dep_msg "$dep" |