From b78da58b49a7a88d23cfdb6311df948fecb82b8f Mon Sep 17 00:00:00 2001 From: andor-pierdelacabeza Date: Fri, 15 Mar 2019 15:08:33 +0100 Subject: [PATCH] Add "silently continue" to mysql command location Signed-off-by: andor-pierdelacabeza --- Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 b/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 index 22810b3c8b45..2589e7394a5c 100644 --- a/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 +++ b/Tasks/AzureMysqlDeploymentV1/Window-MysqlCli-Installer.ps1 @@ -158,7 +158,7 @@ function Add-MachinePathItem return Set-MachinePath -NewPath $newPath } -$command = Get-Command -Name 'mysql' +$command = Get-Command -Name 'mysql' -ErrorAction SilentlyContinue if($command) { return 0; @@ -240,4 +240,4 @@ if ($exitCode -eq 0 -or $exitCode -eq 3010) else { return $exitCode; -} \ No newline at end of file +}