A free open source IT asset/license management system
Fixed --force not skipping the PHP version prompt in ldap:troubleshoot
Abhinav Tarigoppula0cb8bf743f93
diff --git a/app/Console/Commands/LdapTroubleshooter.php b/app/Console/Commands/LdapTroubleshooter.phpindex 7183dc3c75..b2c430e1fa 100644--- a/app/Console/Commands/LdapTroubleshooter.php+++ b/app/Console/Commands/LdapTroubleshooter.php@@ -198,9 +198,12 @@ class LdapTroubleshooter extends Command($major == 8 && $minor == 4 && $patch < 7)) {$this->warn("PHP Version: $php_version WARNING - Versions before 8.3.21 or 8.4.7 will return INCONSISTENT results!");- if (! $this->confirm('Are you sure you wish to continue?')) {- $this->warn('ABORTING');- exit(-1);+ if (! $this->option('force')) {+ $confirmation = $this->confirm('Are you sure you wish to continue?');+ if (! $confirmation) {+ $this->warn('ABORTING');+ exit(-1);+ }}}