Remove carriage return characters when loading configuration files.

Issue: sbt/sbt-launcher-package#165
This commit is contained in:
Jason Steenstra-Pickens 2017-06-01 22:46:06 +12:00
parent ace1846e36
commit 11edc53335
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ process_my_args () {
}
loadConfigFile() {
cat "$1" | sed '/^\#/d' | while read line; do
cat "$1" | sed '/^\#/d;s/\r$//' | while read line; do
eval echo $line
done
}