Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 906 Bytes

PowerShell - Scoop Import.md

File metadata and controls

38 lines (29 loc) · 906 Bytes

PowerShell - Scoop Import

Source: https://gist.github.com/6f2a2368954e3df126a36da6684448cd#file-scoop-import-ps1

# useage:
# scoop-import <exported_list_file>
param(
    $exported
)

$apps = (
    Get-Content -Path $exported | Select-String '(?<app>.*)\s\(v:(?<version>.*)\)\s\[(?<bucket>.*)\]' -AllMatches | 
    Foreach-Object {$_.Matches} | 
    Foreach-Object {($_.Groups["bucket"].Value)+"/"+($_.Groups["app"].Value)}
)

$apps = ($apps | Out-String).Replace("`r`n"," ")
$cmd = "scoop install " + $apps.Trim(" ")
Invoke-Expression $cmd

Appendix: Links

Backlinks:

list from [[PowerShell - Scoop Import]] AND -"Changelog"