Skip to content

Commit

Permalink
use only unix file separators when generating unix scripts (#1440)
Browse files Browse the repository at this point in the history
Co-authored-by: Nepomuk Seiler <muuki88@users.noreply.github.com>
  • Loading branch information
ghik and muuki88 committed Aug 19, 2021
1 parent 6c83cf0 commit d92f682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ object AshScriptPlugin extends AutoPlugin {
private[this] def makeClasspathDefine(cp: Seq[String]): String = {
val fullString = cp map (
n =>
if (n.startsWith(File.separator)) n
if (n.startsWith("/")) n
else "$lib_dir/" + n
) mkString ":"
"app_classpath=\"" + fullString + "\"\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ object BashStartScriptPlugin extends AutoPlugin with ApplicationIniGenerator wit
private[this] def makeClasspathDefine(cp: Seq[String]): String = {
val fullString = cp map (
n =>
if (n.startsWith(File.separator)) n
if (n.startsWith("/")) n
else "$lib_dir/" + n
) mkString ":"
"declare -r app_classpath=\"" + fullString + "\"\n"
Expand Down

0 comments on commit d92f682

Please sign in to comment.