[shellprocess] Warn when there's no script

This commit is contained in:
Adriaan de Groot 2018-01-15 04:19:23 -05:00
parent fdb3fc1ef8
commit 8bd40fdcd5

View File

@ -118,8 +118,10 @@ ShellProcessJob::setConfigurationMap( const QVariantMap& configurationMap )
{ {
m_commands = new CommandList( configurationMap.value( "script" ) ); m_commands = new CommandList( configurationMap.value( "script" ) );
if ( m_commands->isEmpty() ) if ( m_commands->isEmpty() )
cDebug() << "ShellProcessJob: \"script\" contains no commands."; cDebug() << "ShellProcessJob: \"script\" contains no commands for" << moduleInstanceKey();
} }
else
cDebug() << "WARNING: No script given for ShellProcessJob" << moduleInstanceKey();
} }
CALAMARES_PLUGIN_FACTORY_DEFINITION( ShellProcessJobFactory, registerPlugin<ShellProcessJob>(); ) CALAMARES_PLUGIN_FACTORY_DEFINITION( ShellProcessJobFactory, registerPlugin<ShellProcessJob>(); )