|
25 | 25 |
|
26 | 26 | public class CLIRunnerHelper{ |
27 | 27 |
|
28 | | - private final static String CLI_VERSION = "7.5.0-9"; |
| 28 | + private final static String CLI_VERSION = "7.5.0-10"; |
29 | 29 | private final static Map<OperatingSystem, String> CLI_FILENAME = Stream.of( |
30 | 30 | new AbstractMap.SimpleEntry<>(OperatingSystem.LINUX, "eggplant-runner-Linux-${cliVersion}"), |
31 | 31 | new AbstractMap.SimpleEntry<>(OperatingSystem.MACOS, "eggplant-runner-MacOS-${cliVersion}"), |
@@ -88,12 +88,12 @@ public FilePath CLIValidation(String path) throws IOException |
88 | 88 | String cliFilenameMinor = ""; |
89 | 89 | String fileName = filePath.getName(); |
90 | 90 |
|
91 | | - if (cliFilename.length() == 29) { |
92 | | - cliFilenameMinor = cliFilename.substring(0, cliFilename.length() - 4); |
93 | | - filePathMinor = fileName.substring(0, fileName.length() - 4); |
94 | | - } else if (cliFilename.length() == 35) { |
95 | | - cliFilenameMinor = cliFilename.substring(0, cliFilename.length() - 8); |
96 | | - filePathMinor = fileName.substring(0, fileName.length() - 8); |
| 91 | + if (cliFilename.length() == 30) { |
| 92 | + cliFilenameMinor = cliFilename.substring(0, cliFilename.length() - 5); |
| 93 | + filePathMinor = fileName.substring(0, fileName.length() - 5); |
| 94 | + } else if (cliFilename.length() == 36) { |
| 95 | + cliFilenameMinor = cliFilename.substring(0, cliFilename.length() - 9); |
| 96 | + filePathMinor = fileName.substring(0, fileName.length() - 9); |
97 | 97 | } else { |
98 | 98 | cliFilenameMinor = "not correct file format"; |
99 | 99 | filePathMinor = "not match"; |
|
0 commit comments