shlib.sh: exit immediately with failure on missing Config
commitc6acd253292697fb6084265ecc03175cdde80173
authorKyle J. McKay <mackyle@gmail.com>
Sun, 7 Feb 2021 11:43:08 +0000 (7 04:43 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 7 Feb 2021 11:43:08 +0000 (7 04:43 -0700)
tree07fb8e5bc5db77ed723119c69830be37071486e4
parent9385aab5da53bb430faf39873a9a08e3e3bedd0a
shlib.sh: exit immediately with failure on missing Config

When not using shlib_vars.sh to set the config shell variables such
as during the initial installation, if the $GIROCCO_CONF (which
defaults to Girocco::Config) module cannot be loaded to get the
configuration settings, exit immediately with an error.

While not normally an issue, if a custom configuration is being
used (now very easy by using a config.sh file) but the configuration
name has been set incorrectly, it's much saner to exit immediately
as soon as that's detected rather than accidentally continuing on.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh