From 40cb17d419c07fb4f0b8349229a84c73a7eeed12 Mon Sep 17 00:00:00 2001 From: Szkolnik Media Master Date: Sun, 30 Jan 2022 22:14:18 -0500 Subject: [PATCH] =Edit-MountUnit start development --- base.linux/Edit-MountUnit.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 base.linux/Edit-MountUnit.ps1 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