From d4d29b7372540ceba208c151414c8080d96b4c3e Mon Sep 17 00:00:00 2001 From: nickid2018 Date: Mon, 10 Jun 2024 16:04:17 +0800 Subject: [PATCH] fix for CRLF --- .../github/nickid2018/genwiki/iso/ISOInjectionEntryPoints.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/nickid2018/genwiki/iso/ISOInjectionEntryPoints.java b/src/main/java/io/github/nickid2018/genwiki/iso/ISOInjectionEntryPoints.java index a39d46a..c535c19 100644 --- a/src/main/java/io/github/nickid2018/genwiki/iso/ISOInjectionEntryPoints.java +++ b/src/main/java/io/github/nickid2018/genwiki/iso/ISOInjectionEntryPoints.java @@ -131,6 +131,7 @@ public static void readFileAndRun(String file) { String command = IOUtils.toString(commandFile.toURI(), StandardCharsets.UTF_8); List collectedLines = Arrays .stream(command.split("\n")) + .map(String::trim) .filter(s -> !s.isEmpty() && !s.startsWith("#")) .toList(); commandExecutor.execute(() -> {