[shellprocess] Apply verbosity from configuration file

This commit is contained in:
Adriaan de Groot 2024-05-25 22:54:46 +02:00
parent b0614bb79c
commit 0d63ebf14f

View File

@ -60,6 +60,7 @@ ShellProcessJob::setConfigurationMap( const QVariantMap& configurationMap )
{ {
timeout = 30; timeout = 30;
} }
bool verbose = Calamares::getBool( configurationMap, "verbose", false );
if ( configurationMap.contains( "script" ) ) if ( configurationMap.contains( "script" ) )
{ {
@ -69,6 +70,7 @@ ShellProcessJob::setConfigurationMap( const QVariantMap& configurationMap )
{ {
cDebug() << "ShellProcessJob: \"script\" contains no commands for" << moduleInstanceKey(); cDebug() << "ShellProcessJob: \"script\" contains no commands for" << moduleInstanceKey();
} }
m_commands->updateVerbose( verbose );
} }
else else
{ {