ScoopInstaller_Main/bin/auto-pr.ps1
Hsiao-nan Cheung e67399ad69
fix(script): use scoop prefix to correctly find scoop's path (#2878)
* fix(checkver): use scoop prefix to correctly find scoop's path

* Update checkver.ps1

* Update auto-pr.ps1

* Update checkurls.ps1

* Update formatjson.ps1

* Update missing-checkver.ps1

* Update test.ps1
2021-11-05 11:05:05 +01:00

10 lines
381 B
PowerShell

param(
# overwrite upstream param
[String]$upstream = "ScoopInstaller/Main:master"
)
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
$autopr = "$env:SCOOP_HOME/bin/auto-pr.ps1"
$dir = "$psscriptroot/../bucket" # checks the parent dir
Invoke-Expression -command "& '$autopr' -dir '$dir' -upstream $upstream $($args | ForEach-Object { "$_ " })"