Skip to content
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

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

gep13
Copy link
Member

@gep13 gep13 commented Feb 22, 2018

Fixes #1401

@@ -700,4 +701,17 @@ param(
}
}

function Run-Chocolatey {
Write-Debug "Running Chocolatey..."
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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."
Copy link
Member

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

Copy link
Member

@ferventcoder ferventcoder left a 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..."
Copy link
Member

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
Copy link
Member

@ferventcoder ferventcoder left a 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.

@ferventcoder ferventcoder merged commit 3cb969b into chocolatey:stable Feb 22, 2018
@gep13 gep13 deleted the issue-1401 branch February 22, 2018 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants