From 87e5909363a996a4c675e05077932821d3a38244 Mon Sep 17 00:00:00 2001 From: Cassowary Rusnov Date: Thu, 13 Apr 2023 09:32:09 -0700 Subject: [PATCH] Make -m imply -n in recipe/upgrade --- cli/recipe/upgrade.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/recipe/upgrade.go b/cli/recipe/upgrade.go index 9c1dd50b..c70ef4f3 100644 --- a/cli/recipe/upgrade.go +++ b/cli/recipe/upgrade.go @@ -84,6 +84,11 @@ You may invoke this command in "wizard" mode and be prompted for input: } } + if internal.MachineReadable { + // -m implies -n in this case + internal.NoInput = true + } + upgradeList := make(map[string]anUpgrade) // check for versions file and load pinned versions