-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GH-1401) Added initial call to Chocolatey after installation #1507
Conversation
@@ -700,4 +701,17 @@ param( | |||
} | |||
} | |||
|
|||
function Run-Chocolatey { | |||
Write-Debug "Running Chocolatey..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we call write-debug elsewhere in here or does it have another name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I borrowed Write-Debug
from elsewhere 😄
$chocoInstallationFolder = Get-ChocolateyInstallFolder | ||
$chocoExe = Join-Path -Path $chocoInstallationFolder -ChildPath "choco.exe" | ||
& $chocoExe | Out-Null | ||
Write-Debug "Chocolatey execution completed successfully." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs versus spaces. Also ensure all line endings are CRLF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one thing to fix up.
@@ -700,4 +701,17 @@ param( | |||
} | |||
} | |||
|
|||
function Invoke-Chocolatey { | |||
Write-Debug "Running Chocolatey..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initializing Chocolatey files, etc by running Chocolatey...
- This ensures that all necessary setup is completed - Ready for further execution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Looks good, we'll just need to test this against Windows Server 2008 to be sure it works like we hope.
Fixes #1401