Dotfiles/modules/nvm.lua
Ade Attwood 77e5752cd8 chore(core): add some more modules in configz
Start building out the config and modules / libs that will make up the
dotfiles. This will start to take over the puppet and eventually be the
only things getting use going forward.
2023-06-02 17:58:39 +01:00

12 lines
412 B
Lua

local is_installed = configz.is_directory(os.getenv("HOME") .. "/.nvm")
if is_installed then
configz.info("Skipping nvm install")
return
end
configz.download('/tmp/nvm-install.sh', {
url = "https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh",
sha256 = "2ed5e94ba12434370f0358800deb69f514e8bce90f13beb0e1b241d42c6abafd"
})
configz.run("chmod +x /tmp/nvm-install.sh && /tmp/nvm-install.sh")