Skip to content

Commit

Permalink
Fixed typo in daemon checking for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
24online24 committed Dec 22, 2022
1 parent ff0d790 commit de2cbb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ func stop_daemon() {
func check_daemon() bool {
cmd2 := exec.Command("docker", "ps")
out, err := cmd2.CombinedOutput()
fmt.Println(string(out))
if strings.Contains(string(out), "error during connect:") ||
strings.Contains(string(out), "Cannot connect to the Docker daemon.") {
strings.Contains(string(out), "Cannot connect to the Docker daemon") {
return false
}
if err != nil {
Expand Down

0 comments on commit de2cbb7

Please sign in to comment.