Script directory for a PowerShell profile. https://blog.lksz.me/keeping-track-of-everything/#-mypsscriptroot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
355 B

  1. param(
  2. [ValidateSet('List','Update','Auto','All')]
  3. [string]$Mode = 'List'
  4. )
  5. $local:detectedDisistro = cat /etc/os-release | Select-String -Pattern "^ID=" | ForEach-Object { $_ -split '=' | Select-Object -Skip 1 }
  6. switch ($detectedDisistro) {
  7. 'arch' { Update-ArchOSz -Mode:$Mode $args }
  8. 'ubuntu' { Update-UbuntuOSz -Mode:$Mode $args }
  9. }