From ad51b69837f803a1d376975812c5c539343a7269 Mon Sep 17 00:00:00 2001 From: Gamerboy59 Date: Sun, 17 Dec 2023 13:00:43 +0100 Subject: [PATCH] Fix auto config cmd display on manual_config Only display command for automatic install if no manual_config was specified. --- lib/Froxlor/Cli/InstallCommand.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Froxlor/Cli/InstallCommand.php b/lib/Froxlor/Cli/InstallCommand.php index bd8531e0a7..912435fbee 100644 --- a/lib/Froxlor/Cli/InstallCommand.php +++ b/lib/Froxlor/Cli/InstallCommand.php @@ -265,15 +265,15 @@ private function showStep(int $step = 0, bool $extended = false, array $decoded_ return $this->showStep(++$step, $extended, $decoded_input); break; case 4: - $section = $inst->formfield['install']['sections']['step' . $step] ?? []; - $this->io->section($section['title']); - $this->io->note($this->cliTextFormat($section['description'])); - $cmdfield = $section['fields']['system']; - $this->io->success([ - $cmdfield['label'], - $cmdfield['value'] - ]); if (!isset($decoded_input['manual_config']) || (bool)$decoded_input['manual_config'] === false) { + $section = $inst->formfield['install']['sections']['step' . $step] ?? []; + $this->io->section($section['title']); + $this->io->note($this->cliTextFormat($section['description'])); + $cmdfield = $section['fields']['system']; + $this->io->success([ + $cmdfield['label'], + $cmdfield['value'] + ]); if (!empty($decoded_input) || $this->io->confirm('Execute command now?', false)) { passthru($cmdfield['value']); }