DaveTeng0 commented on code in PR #6574:
URL: https://github.com/apache/ozone/pull/6574#discussion_r1596986030
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/repair/OzoneRepair.java:
##########
@@ -61,4 +66,27 @@ public OzoneConfiguration getOzoneConf() {
public static void main(String[] argv) throws Exception {
new OzoneRepair().run(argv);
}
+
+ @Override
+ public int execute(String[] argv) {
+ String currentUser = getSystemUserName();
+ String s = getConsoleReadLineWithFormat(currentUser);
+ boolean shouldProceed = Boolean.parseBoolean(s) || "y".equalsIgnoreCase(s);
Review Comment:
yeah, 'y' should be good! updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]