Skip to content

Commit

Permalink
MID-8842 ninja - better check whether to skip upgrade objects warning
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 14, 2023
1 parent 7362ae2 commit 662d80e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ActionResult<UpgradeObjectsItemsSummary> execute() throws Exception {
log.info("Upgrade will skip {} objects", skipUpgradeItems.size());

if (!options.getFiles().isEmpty()) {
if (!options.isSkipUpgradeWarning()) {
if (context.isUserMode() && !options.isSkipUpgradeWarning()) {
log.warn("File update will remove XML comments and change formatting. Do you wish to proceed? (Y/n)");
String result = NinjaUtils.readInput(log, input -> StringUtils.isEmpty(input) || input.equalsIgnoreCase("y"));

Expand Down

0 comments on commit 662d80e

Please sign in to comment.