Skip to content

Commit

Permalink
update-all: pass all args down to 'update' subcommand
Browse files Browse the repository at this point in the history
We will later add --daily and --hourly arguments to the 'update'
subcommand, but for now we will blindly pass the arguments down.
  • Loading branch information
derrickstolee committed Sep 21, 2022
1 parent 8a86545 commit 3d0746a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/git-bundle-server/update-all.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ func (UpdateAll) run(args []string) error {
return err
}

subargs := []string{"update", ""}
subargs = append(subargs, args...)

for route := range repos {
cmd := exec.Command(exe, "update", route)
subargs[1] = route
cmd := exec.Command(exe, subargs...)
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout

Expand Down

0 comments on commit 3d0746a

Please sign in to comment.