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 }