From c91742c9338d0dbcd146f21398aba9e7972313be Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Sun, 10 Nov 2019 23:59:56 +1100 Subject: [PATCH] use --work-dir with mpbb list-subports (2/2) --- ci/mpbb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/mpbb.go b/ci/mpbb.go index 552a54f..fb0a9e5 100644 --- a/ci/mpbb.go +++ b/ci/mpbb.go @@ -7,8 +7,8 @@ import ( ) // List all subports of a given port. -func ListSubports(port string) ([]string, error) { - listCmd := exec.Command("mpbb", "list-subports", "--archive-site=", "--archive-site-private=", port) +func ListSubports(port, workDir string) ([]string, error) { + listCmd := exec.Command("mpbb", "--work-dir", workDir, "list-subports", "--archive-site=", "--archive-site-private=", port) stdout, err := listCmd.StdoutPipe() if err != nil { return nil, err