Tools: Remove I/O without user confirmation, minor refactoring

- Permissions: Do not write to generated file without explicit consent by user (default behavior of runners should be _not_ to do any I/O)
- Fix wrong check in messages; minor output adjustment
- Remove hacky check to see if last char of a file is a new line
This commit is contained in:
ljacqu
2015-12-10 20:24:20 +01:00
parent 3253b43a63
commit 52b61b10f6
3 changed files with 14 additions and 17 deletions
@@ -25,8 +25,8 @@ public class PermissionsListWriter {
boolean writeToFile = false;
if (includeDescription) {
System.out.println("Write to file? [Enter 'n' for console output]");
writeToFile = !matches("n", scanner);
System.out.println("Write to file? [Enter 'y' for yes]");
writeToFile = matches("y", scanner);
}
scanner.close();