11 lines
355 B
PowerShell
11 lines
355 B
PowerShell
|
param(
|
||
|
[ValidateSet('List','Update','Auto','All')]
|
||
|
[string]$Mode = 'List'
|
||
|
)
|
||
|
|
||
|
$local:detectedDisistro = cat /etc/os-release | Select-String -Pattern "^ID=" | ForEach-Object { $_ -split '=' | Select-Object -Skip 1 }
|
||
|
switch ($detectedDisistro) {
|
||
|
'arch' { Update-ArchOSz -Mode:$Mode $args }
|
||
|
'ubuntu' { Update-UbuntuOSz -Mode:$Mode $args }
|
||
|
}
|