mirror of https://github.com/sbt/sbt.git
Replace %20 with space in sbt script name
We replace spaces in the sbt script with %20 and we need to replace the %20s with spaces.
This commit is contained in:
parent
a757f3e6e8
commit
d255481ade
|
|
@ -1032,10 +1032,14 @@ object NetworkClient {
|
||||||
case a if a == noStdErr || a == noTab || a.startsWith(completions) =>
|
case a if a == noStdErr || a == noTab || a.startsWith(completions) =>
|
||||||
completionArguments += a
|
completionArguments += a
|
||||||
case a if a.startsWith("--sbt-script=") =>
|
case a if a.startsWith("--sbt-script=") =>
|
||||||
sbtScript = a.split("--sbt-script=").lastOption.getOrElse(sbtScript)
|
sbtScript = a
|
||||||
|
.split("--sbt-script=")
|
||||||
|
.lastOption
|
||||||
|
.map(_.replaceAllLiterally("%20", " "))
|
||||||
|
.getOrElse(sbtScript)
|
||||||
case "--sbt-script" if i + 1 < sanitized.length =>
|
case "--sbt-script" if i + 1 < sanitized.length =>
|
||||||
i += 1
|
i += 1
|
||||||
sbtScript = sanitized(i)
|
sbtScript = sanitized(i).replaceAllLiterally("%20", " ")
|
||||||
case a if !a.startsWith("-") => commandArgs += a
|
case a if !a.startsWith("-") => commandArgs += a
|
||||||
case a @ SysProp(key, value) =>
|
case a @ SysProp(key, value) =>
|
||||||
System.setProperty(key, value)
|
System.setProperty(key, value)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue