Fix config file loading to do shell expansion first.

from @benevans.
This commit is contained in:
Josh Suereth 2013-06-29 10:23:49 -04:00
parent d16ab1abd1
commit 18352254e0
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ process_my_args () {
}
loadConfigFile() {
cat "$1" | sed '/^\#/d'
for line in $(cat "$1" | sed '/^\#/d'); do
eval echo $line
done
}
# TODO - Pull in config based on operating system... (MSYS + cygwin should pull in txt file).