aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/installer/context.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-09-17 22:35:38 +0200
committerGitHub <noreply@github.com>2022-09-17 22:35:38 +0200
commitd7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296 (patch)
tree5f5ae4c7b55a90e9522fbaa4a04a1c5ccbafd0d8 /lua/mason-core/installer/context.lua
parentfeat(editorconfig-checker): use the pre-packaged ec (#434) (diff)
downloadmason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.tar
mason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.tar.gz
mason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.tar.bz2
mason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.tar.lz
mason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.tar.xz
mason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.tar.zst
mason-d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296.zip
feat: more competent platform detection (#436)
Diffstat (limited to 'lua/mason-core/installer/context.lua')
-rw-r--r--lua/mason-core/installer/context.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/installer/context.lua b/lua/mason-core/installer/context.lua
index 50850219..b6cc24e5 100644
--- a/lua/mason-core/installer/context.lua
+++ b/lua/mason-core/installer/context.lua
@@ -177,7 +177,7 @@ function InstallContext:promote_cwd()
-- 1. Unlink any existing installation
self.handle.package:unlink()
-- 2. Prepare for renaming cwd to destination
- if platform.is_unix then
+ if platform.is.unix then
-- Some Unix systems will raise an error when renaming a directory to a destination that does not already exist.
fs.async.mkdir(install_path)
end