PowerShell_Scripts/base.linux/Edit-MountUnit.ps1
Gal on Sygin c0131deba4 Introduction of BitWarden package + prep
+ BitWarden module for easy autologon (not very secure but convinent on
  personal machines) - Will think this over some more afterwards
* Get-Path will always return without trailing directory separator
  (might want to make this 'always' for dirs, but unsure yet)
+ Added Edit-MountUnit scaffolding for later modifying it to import a
  template on new mount units, and easy edit of systemd mount and
  automount units.
2022-02-03 19:08:16 -05:00

14 行
292 B
PowerShell

[CmdletBinding()]param(
[string]$MountPath,
[switch]$NoAutoMount
)
$local:pathChar = [IO.Path]::DirectorySeparatorChar
$MountPath = Get-Path $MountPath
$local:MountName = $($($(
$MountPath -replace '-','\\x2d'
).Replace( $pathChar, '-' )
) -replace '^-',''
)
$MountName