Skip to content

Commit cea2813

Browse files
committed
Fixed an issue detecting the module path when the user had multiple matching directories under 'My Documents'.
1 parent 22e854e commit cea2813

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Installation/Install.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function EnsureDirectoriesExist
2727
# Locate the user's module directory
2828
$modulePaths = @($env:PSModulePath -split ';');
2929
$expectedPath = Join-Path -Path ([Environment]::GetFolderPath('MyDocuments')) -ChildPath WindowsPowerShell\Modules;
30-
$destination = $modulePaths | Where-Object { $_ -eq $expectedPath };
30+
$destination = $modulePaths | Where-Object { $_ -eq $expectedPath } | Select -First 1;
3131

3232
if (-not $destination)
3333
{

Tridion-CoreService.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ModuleToProcess = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.0.1.0'
15+
ModuleVersion = '2.0.2.0'
1616

1717
# ID used to uniquely identify this module
1818
GUID = '32e566fb-d28d-43e7-8786-1181ef91a9fd'

0 commit comments

Comments
 (0)