Merge pull request #415 from klightspeed/1.5#fix-e48bd5b

Fix typo in useConfig - should fix #414
This commit is contained in:
Ben Peddell 2016-02-21 01:44:36 +10:00
commit 2c06b1466f

View File

@ -1646,8 +1646,12 @@ useConfig() {
break
fi
done
if [ -a "$configfile" ]; then
echo "Error: config file ${configfile} does not exist"
if [ -z "$configfile" ]; then
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"