Fixed incorrect sbtopts lines processing

It used `for` loop which is known to work incorrectly with spaces. This
commit changes it to `while read` loop. This allows more complex options
to be specified in sbtopts files.

Fixes #80
This commit is contained in:
Vladimir Matveev 2014-10-30 18:06:25 +03:00
parent 7c5bf6f5f6
commit 4334c8672d
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ process_my_args () {
}
loadConfigFile() {
for line in $(cat "$1" | sed '/^\#/d'); do
cat "$1" | sed '/^\#/d' | while read line; do
eval echo $line
done
}