Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #166 from steinybot/wip/sbtopts-crlf
Browse files Browse the repository at this point in the history
Remove carriage return characters when loading configuration files.
  • Loading branch information
eed3si9n authored Sep 18, 2017
2 parents 9eeb402 + 206ccb6 commit e310735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/universal/bin/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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' | while read -r line || [[ -n "$line" ]]; do
cat "$1" | sed '/^\#/d;s/\r$//' | while read -r line || [[ -n "$line" ]]; do
eval echo $line
done
}
Expand Down

0 comments on commit e310735

Please sign in to comment.