Skip to content

Commit 952a771

Browse files
committed
update-all: pass all args down to 'update' subcommand
We will later add --daily and --hourly arguments to the 'update' subcommand, but for now we will blindly pass the arguments down.
1 parent 61b8858 commit 952a771

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/git-bundle-server/update-all.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ func (UpdateAll) run(args []string) error {
2424
return err
2525
}
2626

27+
subargs := []string{"update", ""}
28+
subargs = append(subargs, args...)
29+
2730
for route := range repos {
28-
cmd := exec.Command(exe, "update", route)
31+
subargs[1] = route
32+
cmd := exec.Command(exe, subargs...)
2933
cmd.Stderr = os.Stderr
3034
cmd.Stdout = os.Stdout
3135

0 commit comments

Comments
 (0)