Skip to content

Commit

Permalink
fix this
Browse files Browse the repository at this point in the history
  • Loading branch information
Blad3Mak3r committed Apr 25, 2023
1 parent 4487c1f commit 057a59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func GetContainerId(containerCLI string, contaierPattern string) (string, error)
var containerId string

if contaierPattern != "" {
cmd := exec.Command(containerCLI, "ps", "-afq", "'name=^pgsql-*'")
cmd := exec.Command(containerCLI, "ps", "-afq", fmt.Sprintf("'name=^%s'", contaierPattern))
cmd.Stderr = os.Stderr

out, err := cmd.StdoutPipe()
Expand Down

0 comments on commit 057a59e

Please sign in to comment.