mirror of https://github.com/sbt/sbt.git
OS X compatible line-ending stripping
BSD sed interprets sed 's/\r//' as "replace the literal letter r". A more compatible approach delegates the interpretation of this sequence to bash. Fixes #186
This commit is contained in:
parent
c0b961c5c3
commit
d251388f53
|
|
@ -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