From 039af91eb231f6527b340359167c43dda71873a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20MICHEL?= Date: Mon, 5 Feb 2024 12:47:50 +0100 Subject: [PATCH] correct initialization error --- EasyPIM/EasyPIM.psd1 | 2 +- EasyPIM/internal/scripts/variables.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EasyPIM/EasyPIM.psd1 b/EasyPIM/EasyPIM.psd1 index e647066..f932e88 100644 --- a/EasyPIM/EasyPIM.psd1 +++ b/EasyPIM/EasyPIM.psd1 @@ -4,7 +4,7 @@ RootModule = 'EasyPIM.psm1' # Version number of this module. -ModuleVersion = '1.2.0' +ModuleVersion = '1.2.1' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/EasyPIM/internal/scripts/variables.ps1 b/EasyPIM/internal/scripts/variables.ps1 index e785cac..0ca169a 100644 --- a/EasyPIM/internal/scripts/variables.ps1 +++ b/EasyPIM/internal/scripts/variables.ps1 @@ -21,7 +21,7 @@ $script:teamsWebhookURL = "https://microsoft.webhook.office.com/webhookb2/xxxxxx #from now every error will be treated as exception and terminate the script $script:_scriptFullName = $MyInvocation.scriptName -$script:_scriptName = Split-Path -Leaf $_scriptFullName +$script:_scriptName = "EasyPIM" #Split-Path -Leaf $_scriptFullName $script:HostFQDN = $env:computername + "." + $env:USERDNSDOMAIN # ERROR HANDLING $ErrorActionPreference = "STOP" # make all errors terminating ones so they can be catched