From 4977d93e4c7b0c4498888f0dd5a8ed634e9d447e Mon Sep 17 00:00:00 2001 From: Steve Williams <90905675+stevewgr@users.noreply.github.com> Date: Wed, 22 May 2024 18:03:26 -0400 Subject: [PATCH 1/2] Fix command example to print the invoking script. --- utils.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils.ps1 b/utils.ps1 index b0673d0..bef073f 100644 --- a/utils.ps1 +++ b/utils.ps1 @@ -31,7 +31,9 @@ function ValidateServerNameInput { $sql_instances = @($sql_instances | Where-Object { $_ -ne "MSSQLSERVER" }) if ($sql_instances) { MessageError "Available sql named instances: [$($sql_instances -join ', ')]" - MessageError "Example: .\odbcad.ps1 -server_name .\$($sql_instances[-1])" + $invoker_script_name = ($MyInvocation.PSCommandPath -split "\\")[-1] + MessageError "Example: .\$invoker_script_name -server_name "".\$($sql_instances[-1])""" + exit 1 } return $false } From d5a8a7f22164dcd97e3388496b35398d33b25500 Mon Sep 17 00:00:00 2001 From: Steve Williams <90905675+stevewgr@users.noreply.github.com> Date: Wed, 22 May 2024 18:08:36 -0400 Subject: [PATCH 2/2] Bump version from 1.0.2 to 1.1.0. --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6d7de6e..9084fa2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +1.1.0