mirror of https://github.com/sbt/sbt.git
Fix #2551: scripted mode ignores quotation
This commit is contained in:
parent
6b5f0980e8
commit
b97d68a214
|
|
@ -49,7 +49,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.commandLine}"""")
|
||||||
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