Fix logic error in configfile test

This commit is contained in:
Ben Peddell 2016-02-19 09:13:35 +10:00
parent 3b2f1e7a30
commit fdc7bffb6b

View File

@ -1647,7 +1647,11 @@ useConfig() {
fi
done
if [ -z "$configfile" ]; then
echo "Error: config file ${configfile} does not exist"
echo "Error: no config files for instance $1"
exit 1
fi
if [ ! -f "$configfile" ]; then
echo "Error: config file $configfile does not exist"
exit 1
fi
source "$configfile"