Skip to content

Commit b2eeb56

Browse files
merge-fix
1 parent ea4ae0a commit b2eeb56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public KicsRealtimeResults kicsRealtimeScan(@NonNull String fileSources, String
411411
return Execution.executeCommand(withConfigArguments(arguments), logger, KicsRealtimeResults::fromLine);
412412
}
413413

414-
public <T> T realtimeScan(@NonNull String subCommand, @NonNull String sourcePath, String containerTool, String ignoredFilePath, java.util.function.Function<String, T> resultParser)
414+
// public <T> T realtimeScan(@NonNull String subCommand, @NonNull String sourcePath, String containerTool, String ignoredFilePath, java.util.function.Function<String, T> resultParser)
415415
public String checkEngineExist(@NonNull String engineName) throws CxException, IOException, InterruptedException {
416416
String osName = System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
417417
String osType=Execution.getOperatingSystemType(osName);
@@ -428,13 +428,12 @@ private String checkEngine(String engineName, String osType ) throws CxExceptio
428428
arguments.add("command -v " + engineName);
429429
try{
430430
enginePath= Execution.executeCommand((arguments), logger, line->line);
431-
}
431+
} catch (CxException | IOException e) {
432432
throw new CxException(
433433
1,
434434
"Engine '" + engineName + "' is not installed or not found at /usr/local/bin)."
435435
);
436-
437-
436+
}
438437
return enginePath;
439438
case OS_WINDOWS:
440439
case OS_LINUX:

0 commit comments

Comments
 (0)