Attempt to fix 4

This commit is contained in:
Johannes Frohnmeyer 2022-09-06 15:05:44 +02:00
parent ad18164d69
commit 81f9cd270a
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,7 @@ public class BatchCommand extends Command {
}
try {
for (String line : Files.readAllLines(p)) {
CommandResolution resolution = CliMain.resolve(ArgumentsTokenizer.tokenize(line), args.wrapped);
if (resolution.command() instanceof WrapperCommand)
throw new Exception("You may not use the wrapper command in a command batch");
CommandResolution resolution = CliMain.resolve(ArgumentsTokenizer.tokenize(line));
resolved.add(resolution);
}
} catch (Exception e) {