When I run itz doctor init on a system with Docker, the podman.path is updated to the docker binary location (full path) and there is no error from the command.
When I run itz doctor init on a system with Podman, the podman.path is updated to the podman binary location (full path) and there is no error from the command.
When I run itz doctor init on a system with neither Docker nor Podman, this is the only time the command returns an exit code for this check.
@nathanagood The ExistsOnPath function uses exec.LookPath(name) which returns a full path
(including the name) to the binary. I removed the length of the name from the path
string, but this might not work in weird edge cases like an invisible ASCII character.
Changed NewBinaryFileCheck to NewResourceFileCheck and added OneExistsOnPath and ExistsOnPath as checker functions to determine path.
This is to address issue #511
@nathanagood The ExistsOnPath function uses exec.LookPath(name) which returns a full path (including the name) to the binary. I removed the length of the name from the path string, but this might not work in weird edge cases like an invisible ASCII character.