Dotfiles/site-modules/vscode/manifests/extention.pp
Ade Attwood 9e96a5c8c8 fix(core): only install vscode extension if its not already installed
When installing a vscode extention the shell command to install the extention
would run every time puppet was run. Now we test to see if the extention is
installed first before trying to install it.
2020-10-13 20:46:56 +01:00

8 lines
259 B
Puppet

define vscode::extention {
exec { "code_install_${title}":
command => "code --install-extension ${title}",
path => '/usr/bin:/usr/local/bin:/usr/sbin:/bin',
unless => "code --list-extensions | grep ${title}",
provider => shell,
}
}