corrected replacement of last backslash

This commit is contained in:
Hans-Joachim Kliemeck 2015-11-11 12:51:24 +01:00 committed by Matt Clay
parent cd0e97dc77
commit bb27e38578

View file

@ -145,7 +145,7 @@ Try {
}
# normalize path and remove slash at the end
$path = (Get-Item $path).FullName -replace ".$"
$path = (Get-Item $path).FullName -replace "\\$"
# need to (re-)create share
If (!$share) {