Skip to content

Commit 71ce3a8

Browse files
committed
Merge pull request #29 from jroper/patch-2
Append newline after template_declares substitution
2 parents fa5fe6b + 5cb8114 commit 71ce3a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/com/typesafe/sbt/packager/archetypes/JavaAppBashScript.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ object JavaAppBashScript {
4040
for(line <- sbt.IO.readLinesURL(bashTemplateSource, charset)) {
4141
if(line contains """${{template_declares}}""") {
4242
sb append (defines mkString "\n")
43+
sb append "\n"
4344
} else {
4445
sb append line
4546
sb append "\n"
@@ -54,4 +55,4 @@ object JavaAppBashScript {
5455
def mainClassDefine(mainClass: String) =
5556
"declare -r app_mainclass=\"%s\"\n" format (mainClass)
5657

57-
}
58+
}

0 commit comments

Comments
 (0)