diff --git a/base.linux/Edit-MountUnit.ps1 b/base.linux/Edit-MountUnit.ps1 new file mode 100644 index 0000000..b9f8d69 --- /dev/null +++ b/base.linux/Edit-MountUnit.ps1 @@ -0,0 +1,10 @@ +[CmdletBinding()]param( + [string]$MountPath, + [switch]$NoAutoMount +) + +$local:pathChar = [IO.Path]::DirectorySeparatorChar +$MountPath = Get-Path $MountPath +$local:MountName = $MountPath -replace '-','\\x2d' -replace $pathChar,'-' -replace '^-','' -replace '-^','' + +$MountName