Skip to content

Commit e49334d

Browse files
committed
Remove seperator at the end
1 parent 4aeae50 commit e49334d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell-adapter/psDscAdapter/win_psDscAdapter.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ function Repair-ValidPSModulePath {
711711
end {
712712
if (($env:PSModulePath -split [System.IO.Path]::PathSeparator) -contains '') {
713713
"Removing empty entry from PSModulePath: '$env:PSModulePath'" | Write-DscTrace -Operation Debug
714-
$env:PSModulePath = [String]::Join([System.IO.Path]::PathSeparator, ($env:PSModulePath.Split([System.IO.Path]::PathSeparator, [System.StringSplitOptions]::RemoveEmptyEntries)))
714+
$env:PSModulePath = [String]::Join([System.IO.Path]::PathSeparator, ($env:PSModulePath.Split([System.IO.Path]::PathSeparator, [System.StringSplitOptions]::RemoveEmptyEntries))).TrimEnd([System.IO.Path]::PathSeparator)
715715
}
716716
}
717717
}

0 commit comments

Comments
 (0)