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(() -> {