mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
- Exit 0 and issue warning on empty config file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2979 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1516,6 +1516,11 @@ sub checkConfiguration {
|
||||
|
||||
readConfigFile() if (!$CONFIG);
|
||||
|
||||
if (!scalar keys %{$CONFIG}) {
|
||||
print "-> WARNING: Configuration is empty or unreadable, aborting.\n\n";
|
||||
exit 0;
|
||||
}
|
||||
|
||||
# Check for a minimum sane configuration
|
||||
if (!defined($$CONFIG{'TARGET_DRIVER'}) ||
|
||||
!(scalar keys %{$$CONFIG{'TARGET_DRIVER'}})) {
|
||||
|
||||
Reference in New Issue
Block a user