Skip to content

Commit

Permalink
possible fix for t pkg flag (#8234)
Browse files Browse the repository at this point in the history
  • Loading branch information
dshekhar95 authored Sep 13, 2022
1 parent 8aec7b9 commit a12bf95
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/t.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ func commandWithContext(ctx context.Context, args ...string) *exec.Cmd {

// command takes a list of args and executes them as a program.
// Example:
// docker-compose up -f "./my docker compose.yml"
//
// docker-compose up -f "./my docker compose.yml"
//
// would become:
// command("docker-compose", "up", "-f", "./my docker compose.yml")
//
// command("docker-compose", "up", "-f", "./my docker compose.yml")
func command(args ...string) *exec.Cmd {
return commandWithContext(ctxb, args...)
}
Expand Down Expand Up @@ -503,7 +506,7 @@ func getPackages() []task {

var valid []task
for _, pkg := range pkgs {
if len(*runPkg) > 0 && !strings.HasSuffix(pkg.ID, *runPkg) {
if len(*runPkg) > 0 && !strings.HasSuffix(pkg.ID, "/"+*runPkg) {
continue
}

Expand Down

0 comments on commit a12bf95

Please sign in to comment.