- 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:
Mark Buechler
2010-12-08 15:01:48 +00:00
parent b12f90f23f
commit 8f8dffd91b

View File

@@ -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'}})) {