Skip to content

Commit ee262e0

Browse files
authored
Remove carriage return characters when loading configuration files.
Fixes sbt#1074
1 parent 4e50958 commit ee262e0

File tree

1 file changed

+1
-1
lines changed
  • src/main/resources/com/typesafe/sbt/packager/archetypes/scripts

1 file changed

+1
-1
lines changed

src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/bash-template

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ run() {
263263

264264
# Loads a configuration file full of default command line options for this script.
265265
loadConfigFile() {
266-
cat "$1" | sed '/^\#/d'
266+
cat "$1" | sed '/^\#/d;s/\r$//'
267267
}
268268

269269
# Now check to see if it's a good enough version

0 commit comments

Comments
 (0)