mirror of https://github.com/sbt/sbt.git
Merge pull request #187 from timcharper/patch-1
OS X compatible line-ending stripping
This commit is contained in:
commit
bc00a5490c
|
|
@ -137,7 +137,7 @@ process_my_args () {
|
|||
|
||||
loadConfigFile() {
|
||||
# Make sure the last line is read even if it doesn't have a terminating \n
|
||||
cat "$1" | sed '/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do
|
||||
cat "$1" | sed $'/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do
|
||||
eval echo $line
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue