From e5a5f41db156cb0a726da73cb1ecd02ea4268cc4 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Tue, 7 Feb 2017 19:00:24 +0100 Subject: [PATCH] Add $dir parameter to auto-pr --- bin/auto-pr.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/auto-pr.ps1 b/bin/auto-pr.ps1 index c32b1931a..9b09fe5ae 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 = $_