Skip to content

Commit

Permalink
Merge pull request #4250 from sbesson/imageinfo_exitcode
Browse files Browse the repository at this point in the history
ImageInfo: only call System.exit in batch mode
  • Loading branch information
melissalinkert authored Nov 4, 2024
2 parents df36e69 + b74b6d8 commit e62d46d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1153,12 +1153,11 @@ public static void main(String[] args) throws Exception {
}
}
scanner.close();
System.exit(exitCode);
}
else {
if (!new ImageInfo().testRead(args)) System.exit(1);
}

System.exit(exitCode);
}
}

0 comments on commit e62d46d

Please sign in to comment.