aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-04-18 11:35:50 +0200
committerGitHub <noreply@github.com>2023-04-18 09:35:50 +0000
commit5a26b2f6906615475a4fd82506ccf8642b81d84e (patch)
treeca3f2b0c5076eb818ecbb99413f07c631699eff3 /lua
parentchore: migrate haskell-language-server (#1230) (diff)
downloadmason-5a26b2f6906615475a4fd82506ccf8642b81d84e.tar
mason-5a26b2f6906615475a4fd82506ccf8642b81d84e.tar.gz
mason-5a26b2f6906615475a4fd82506ccf8642b81d84e.tar.bz2
mason-5a26b2f6906615475a4fd82506ccf8642b81d84e.tar.lz
mason-5a26b2f6906615475a4fd82506ccf8642b81d84e.tar.xz
mason-5a26b2f6906615475a4fd82506ccf8642b81d84e.tar.zst
mason-5a26b2f6906615475a4fd82506ccf8642b81d84e.zip
fix(health): only check pwsh on Windows (#1232)
Diffstat (limited to 'lua')
-rw-r--r--lua/mason/health.lua19
1 files changed, 9 insertions, 10 deletions
diff --git a/lua/mason/health.lua b/lua/mason/health.lua
index 2ffe81aa..8955b2e0 100644
--- a/lua/mason/health.lua
+++ b/lua/mason/health.lua
@@ -142,16 +142,6 @@ local function check_core_utils()
relaxed = platform.is.win,
}
check { cmd = "tar", args = { "--version" }, name = "tar" }
- check {
- cmd = "pwsh",
- args = {
- "-NoProfile",
- "-Command",
- [[$PSVersionTable.PSVersion, $PSVersionTable.OS, $PSVersionTable.Platform -join " "]],
- },
- name = "pwsh",
- relaxed = not platform.is.win,
- }
if platform.is.unix then
check { cmd = "bash", args = { "--version" }, name = "bash" }
@@ -159,6 +149,15 @@ local function check_core_utils()
end
if platform.is.win then
+ check {
+ cmd = "pwsh",
+ args = {
+ "-NoProfile",
+ "-Command",
+ [[$PSVersionTable.PSVersion, $PSVersionTable.OS, $PSVersionTable.Platform -join " "]],
+ },
+ name = "pwsh",
+ }
check { cmd = "7z", args = { "--help" }, name = "7z", relaxed = true }
end
end