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

Remove carriage return characters when loading configuration files. #166

Merged
merged 2 commits into from
Sep 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into wip/sbtopts-crlf
eed3si9n authored Sep 18, 2017
commit 206ccb675a815252336208c5d1497c00e3b184c7
3 changes: 2 additions & 1 deletion src/universal/bin/sbt
Original file line number Diff line number Diff line change
@@ -136,7 +136,8 @@ process_my_args () {
}

loadConfigFile() {
cat "$1" | sed '/^\#/d;s/\r$//' | while read line; do
# 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
eval echo $line
done
}
You are viewing a condensed version of this merge commit. You can view the full changes here.