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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user