diff --git a/bin/auto-pr.ps1 b/bin/auto-pr.ps1 index c32b1931ab..9b09fe5ae7 100644 --- a/bin/auto-pr.ps1 +++ b/bin/auto-pr.ps1 @@ -10,11 +10,15 @@ param( [String]$upstream = "lukesampson/scoop:master", + [String]$dir, [Switch]$push = $false, [Switch]$request = $false, [Switch]$help = $false ) +if(!$dir) { $dir = "$psscriptroot\.." } +$dir = resolve-path $dir + . "$psscriptroot\..\lib\manifest.ps1" . "$psscriptroot\..\lib\json.ps1" @@ -104,7 +108,7 @@ if($push -eq $true) { execute("hub push origin master") } -. "$psscriptroot\checkver.ps1" * -u +. "$dir\bin\checkver.ps1" * -update hub diff --name-only | % { $manifest = $_