Skip to content

Commit e4869c6

Browse files
committed
Fix "bashbrew --namespace foo list --repos bar" (should prefix with namespace)
1 parent a40a54d commit e4869c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/bashbrew/cmd-list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"fmt"
5+
"path"
56

67
"github.com/codegangsta/cli"
78
"github.com/docker-library/go-dockerlibrary/manifest"
@@ -33,7 +34,7 @@ func cmdList(c *cli.Context) error {
3334

3435
if onlyRepos {
3536
if r.TagEntry == nil {
36-
fmt.Printf("%s\n", r.RepoName)
37+
fmt.Printf("%s\n", path.Join(namespace, r.RepoName))
3738
} else {
3839
for _, tag := range r.Tags(namespace, uniq, r.TagEntry) {
3940
fmt.Printf("%s\n", tag)

0 commit comments

Comments
 (0)