Skip to content

Commit

Permalink
fix for CRLF
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickid2018 committed Jun 10, 2024
1 parent 0807ba2 commit d4d29b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public static void readFileAndRun(String file) {
String command = IOUtils.toString(commandFile.toURI(), StandardCharsets.UTF_8);
List<String> collectedLines = Arrays
.stream(command.split("\n"))
.map(String::trim)
.filter(s -> !s.isEmpty() && !s.startsWith("#"))
.toList();
commandExecutor.execute(() -> {
Expand Down

0 comments on commit d4d29b7

Please sign in to comment.