mirror of https://github.com/sbt/sbt.git
Fix #2551: scripted mode ignores quotation
This commit is contained in:
parent
33e7cbc907
commit
d74b24db42
|
|
@ -42,7 +42,7 @@ object Script {
|
||||||
val append = Load.transformSettings(Load.projectScope(currentRef), currentRef.build, rootProject, scriptSettings ++ embeddedSettings)
|
val append = Load.transformSettings(Load.projectScope(currentRef), currentRef.build, rootProject, scriptSettings ++ embeddedSettings)
|
||||||
|
|
||||||
val newStructure = Load.reapply(session.original ++ append, structure)
|
val newStructure = Load.reapply(session.original ++ append, structure)
|
||||||
val arguments = state.remainingCommands.drop(1)
|
val arguments = state.remainingCommands.drop(1).map(e => s""""${e}"""")
|
||||||
val newState = arguments.mkString("run ", " ", "") :: state.copy(remainingCommands = Nil)
|
val newState = arguments.mkString("run ", " ", "") :: state.copy(remainingCommands = Nil)
|
||||||
Project.setProject(session, newStructure, newState)
|
Project.setProject(session, newStructure, newState)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- Fixes scripted mode ignores quotation. [#2551][2551] by [@ekrich][@ekrich]
|
||||||
|
|
||||||
|
[2551]: https://github.com/sbt/sbt/issues/2551
|
||||||
|
[@ekrich]: https://github.com/ekrich
|
||||||
Loading…
Reference in New Issue