From 11edc53335591e5ea7292256c601443d5b2420af Mon Sep 17 00:00:00 2001 From: Jason Steenstra-Pickens Date: Thu, 1 Jun 2017 22:46:06 +1200 Subject: [PATCH] Remove carriage return characters when loading configuration files. Issue: sbt/sbt-launcher-package#165 --- src/universal/bin/sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal/bin/sbt b/src/universal/bin/sbt index 8ada3d5..004d4a4 100755 --- a/src/universal/bin/sbt +++ b/src/universal/bin/sbt @@ -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 }