Scripts/scoop-pkg/scoop_pkg.ps1

13 lines
321 B
PowerShell
Raw Normal View History

2023-11-24 11:36:58 -04:00
if ($args[0] -eq "freeze") {
if (!$args[1]) {
scoop export | Out-File -Encoding utf8 -FilePath $env:HOMEPATH\scoop_pkg.json
} else {
scoop export | Out-File -Encoding utf8 -FilePath $args[1]
}
} else {
if (!$args[0]) {
scoop import $env:HOMEPATH\scoop_pkg.json
} else {
scoop import $args[0]
}
}