useconfig now does nothing when useconfig main is used

This commit is contained in:
Ben Peddell 2015-09-24 08:50:16 +10:00
parent 7b5d8b60f2
commit c97ed485f5

View File

@ -1138,6 +1138,9 @@ printStatus(){
}
useConfig() {
if [ "$1" == "main" ]; then
return
fi
for varname in "${!configfile_@}"; do
if [ "configfile_$1" == "$varname" ]; then
source "${!varname}"