Skip to content

Commit

Permalink
support PODMAN_BIN with CONTAINER_TOOL change
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan committed Aug 13, 2024
1 parent 9da4a1f commit 6ecb3c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func (c *Config) loadDefaultPodmanBin() error {
if os.Getenv("CONTAINER_TOOL") != "" {
return nil
}
if os.Getenv("PODMAN_BIN") != "" {
podmanBin := os.Getenv("PODMAN_BIN")
if podmanBin != "" {
os.Setenv("CONTAINER_TOOL", podmanBin)
return nil
}
// Try to use podman. If it's not found, try to use docker.
Expand Down

0 comments on commit 6ecb3c5

Please sign in to comment.