corrected replacement of last backslash
This commit is contained in:
parent
cd0e97dc77
commit
bb27e38578
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ Try {
|
||||||
}
|
}
|
||||||
|
|
||||||
# normalize path and remove slash at the end
|
# 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
|
# need to (re-)create share
|
||||||
If (!$share) {
|
If (!$share) {
|
||||||
|
|
Loading…
Reference in a new issue