Perform shell expansion when loading sbtopts files.

This is so that tilde and variable expansion gets performed before
the sbt command line is built, otherwise options like "-ivy ~/.ivy2"
don't work, because the tilde is never expanded.
This commit is contained in:
Ben Evans 2013-06-17 10:36:10 +12:00
parent f8e4ef438b
commit b57a743369
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ process_my_args () {
}
loadConfigFile() {
cat "$1" | sed '/^\#/d'
for line in $(cat "$1" | sed '/^\#/d'); do
eval echo $line
done
}
# if sbtopts files exist, prepend their contents to $@ so it can be processed by this runner