mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
corrected replacement of last backslash
This commit is contained in:
committed by
Matt Clay
parent
cd0e97dc77
commit
bb27e38578
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user