File tree Expand file tree Collapse file tree
src/main/java/com/redhat/exhort/image Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ public static JsonNode generateImageSBOM(ImageRef imageRef)
131131
132132 static Operations .ProcessExecOutput execSyft (ImageRef imageRef ) {
133133 var syft = Operations .getExecutable (SYFT , ARG_VERSION );
134- var docker = Operations .getExecutable (DOCKER , ARG_VERSION );
135- var podman = Operations .getExecutable (PODMAN , ARG_VERSION );
134+ var docker = Operations .getCustomPathOrElse (DOCKER );
135+ var podman = Operations .getCustomPathOrElse (PODMAN );
136136
137137 var syftConfigPath = Environment .get (EXHORT_SYFT_CONFIG_PATH , "" );
138138 var imageSource = Environment .get (EXHORT_SYFT_IMAGE_SOURCE , "" );
@@ -238,7 +238,7 @@ public static Platform getImagePlatform() {
238238 }
239239
240240 static String hostInfo (String engine , String info ) {
241- var exec = Operations .getExecutable (engine , ARG_VERSION );
241+ var exec = Operations .getCustomPathOrElse (engine );
242242 var cmd = new String [] {exec , "info" };
243243
244244 var output = Operations .runProcessGetFullOutput (null , cmd , null );
You can’t perform that action at this time.
0 commit comments