From 7707feeb65e0b9da9fb0b5b47342135c7e88daef Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Mon, 10 Aug 2020 11:26:39 +0200 Subject: [PATCH] Fix for #22 --- PSTeams.psd1 | 4 ++-- Public/New-TeamsActivityImage.ps1 | 2 +- Public/New-TeamsSection.ps1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PSTeams.psd1 b/PSTeams.psd1 index c619226..52b4f58 100644 --- a/PSTeams.psd1 +++ b/PSTeams.psd1 @@ -3,7 +3,7 @@ # # Generated by: Przemyslaw Klys # -# Generated on: 29.07.2020 +# Generated on: 10.08.2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'PSTeams.psm1' # Version number of this module. - ModuleVersion = '1.0.4' + ModuleVersion = '1.0.5' # Supported PSEditions CompatiblePSEditions = 'Desktop', 'Core' diff --git a/Public/New-TeamsActivityImage.ps1 b/Public/New-TeamsActivityImage.ps1 index 51686aa..a92c569 100644 --- a/Public/New-TeamsActivityImage.ps1 +++ b/Public/New-TeamsActivityImage.ps1 @@ -7,7 +7,7 @@ ) if ($Image) { if ($Image -ne 'None') { - $StoredImages = [IO.Path]::Combine("$(Split-Path -Path $PSScriptRoot -Parent)", "Images") + $StoredImages = [IO.Path]::Combine($PSScriptRoot, '..', 'Images') @{ ActivityImageLink = Get-Image -PathToImages $StoredImages -FileName $Image -FileExtension '.jpg' # -Verbose type = 'ActivityImage' diff --git a/Public/New-TeamsSection.ps1 b/Public/New-TeamsSection.ps1 index 3bbe5b2..627faed 100644 --- a/Public/New-TeamsSection.ps1 +++ b/Public/New-TeamsSection.ps1 @@ -15,7 +15,7 @@ function New-TeamsSection { [switch] $StartGroup ) if ($ActivityImage -ne 'None') { - $StoredImages = [IO.Path]::Combine("$(Split-Path -Path $PSScriptRoot -Parent)", "Images") + $StoredImages = [IO.Path]::Combine($PSScriptRoot, '..', 'Images') $ActivityImageLink = Get-Image -PathToImages $StoredImages -FileName $ActivityImage -FileExtension '.jpg' # -Verbose }