Skip to content

Commit

Permalink
use double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Blad3Mak3r committed Apr 25, 2023
1 parent 8405133 commit 5d7c0d2
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 @@ -13,7 +13,7 @@ func GetContainerId(containerCLI string, contaierPattern string) (string, error)
var containerId string

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

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

0 comments on commit 5d7c0d2

Please sign in to comment.