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

Add "silently continue" to mysql command location #9848

Merged
merged 2 commits into from
Apr 18, 2019
Merged

Add "silently continue" to mysql command location #9848

merged 2 commits into from
Apr 18, 2019

Conversation

andor-pierdelacabeza
Copy link
Contributor

Seems like that "Get-Command" line function is checking if 'mysql' command is already available, and, in that case, exit the script with a '0' exit code, and if that's not the case, then keep installing the client.

Thing is, if mysql is not available, it will throw a CommandNotFoundException and break the script.

So, to allow the script keep going, I've added the -ErrorAction SilentlyContinue parameter to Get-Command.

Signed-off-by: andor-pierdelacabeza [email protected]

@RoshanKumarMicrosoft RoshanKumarMicrosoft merged commit d20176a into microsoft:master Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants