Add $dir parameter to auto-pr

This commit is contained in:
Richard Kuhnt
2017-02-07 19:00:24 +01:00
parent 3972ab563f
commit e5a5f41db1
+5 -1
View File
@@ -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 = $_