And show more configuration details on regular runs, too.
echo
echo "When no <system> is given, all defined systems are used."
echo
echo
echo "When no <system> is given, all defined systems are used."
echo
- echo "Configuration file is \"$conf\","
- echo "using \"$conf_d\" as configuration directory."
[ -r "$conf" ] && break
done
[ -r "$conf" ] && break
done
+# Read in configuration file
+config_info="Configuration file is \"$conf\""
+if [ -r "$conf" ]; then
+ source "$conf"
+else
+ config_info="${config_info} (not readable, using defaults)"
+fi
+config_info="${config_info},\nusing \"$conf_d\" as configuration directory."
+
while [ $# -gt 0 ]; do
case "$1" in
"-n"|"--dry-run")
while [ $# -gt 0 ]; do
case "$1" in
"-n"|"--dry-run")
trap GotSignal SIGINT
echo -n "Started: "; date
trap GotSignal SIGINT
echo -n "Started: "; date
-
-# Read in configuration file
-if [ -r "$conf" ]; then
- echo "Reading configuration: \"$conf\" ..."
- source "$conf"
-else
- echo "No configuration file found, using defaults."
-fi
echo
if [ $# -ge 1 ]; then
echo
if [ $# -ge 1 ]; then