Skip to content

Commit

Permalink
Add $dir parameter to auto-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Feb 7, 2017
1 parent 3972ab5 commit e5a5f41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/auto-pr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 = $_
Expand Down

0 comments on commit e5a5f41

Please sign in to comment.