mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
[calamares] Check that a sequence has been set
This commit is contained in:
parent
7515f36b96
commit
5f308e8e17
1 changed files with 6 additions and 1 deletions
|
@ -263,7 +263,12 @@ CalamaresApplication::initSettings()
|
||||||
::exit( EXIT_FAILURE );
|
::exit( EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
|
|
||||||
new Calamares::Settings( settingsFile.absoluteFilePath(), isDebug(), this );
|
auto* settings = new Calamares::Settings( settingsFile.absoluteFilePath(), isDebug(), this ); // Creates singleton
|
||||||
|
if ( settings->modulesSequence().count() < 1 )
|
||||||
|
{
|
||||||
|
cError() << "FATAL: no sequence set.";
|
||||||
|
::exit( EXIT_FAILURE );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue