Skip to content

Commit

Permalink
ignore err if podman not found to use default
Browse files Browse the repository at this point in the history
  • Loading branch information
eemcmullan committed Aug 31, 2023
1 parent 88fee49 commit 47a53e6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@ type Config struct {
}

func (c *Config) Load() error {
podmanPath, err := exec.LookPath("podman")
if err != nil {
return err
}
if podmanPath != Settings.PodmanBinary {
podmanPath, _ := exec.LookPath("podman")
if podmanPath != Settings.PodmanBinary && (podmanPath != "" || len(podmanPath) == 0) {
os.Setenv("PODMAN_BIN", podmanPath)
}
err = env.Set(Settings)
err := env.Set(Settings)
if err != nil {
return err
}
Expand Down

0 comments on commit 47a53e6

Please sign in to comment.