From b57a743369bfd78b000606a9491cf06f6b1a8595 Mon Sep 17 00:00:00 2001 From: Ben Evans Date: Mon, 17 Jun 2013 10:36:10 +1200 Subject: [PATCH] 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. --- src/scripts/sbt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/sbt b/src/scripts/sbt index c2249d9a5..7e2d54643 100755 --- a/src/scripts/sbt +++ b/src/scripts/sbt @@ -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