Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
chocolatey-cookbook
Commits
5424c48b
Unverified
Commit
5424c48b
authored
Mar 02, 2020
by
Joost van der Hoff
Browse files
Don't (re-)run installer if Chocolatey already installed
(even if the upgrade attribute is set to true)
parent
bc1c2a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
recipes/default.rb
View file @
5424c48b
...
...
@@ -36,5 +36,5 @@ powershell_script 'Install Chocolatey' do
environment
node
[
'chocolatey'
][
'install_vars'
]
cwd
Chef
::
Config
[
'file_cache_path'
]
code
install_ps1
not_if
{
chocolatey_installed?
&&
(
node
[
'chocolatey'
][
'upgrade'
]
==
false
)
}
not_if
{
chocolatey_installed?
}
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment