mirror of https://github.com/sbt/sbt.git
Fix logic in client
This commit is contained in:
parent
4201a6ecdd
commit
c239b553b6
|
|
@ -210,9 +210,9 @@ object BasicCommands {
|
||||||
val p = (token(Space) ~> repsep(StringBasic, token(Space))) | (token(EOF) map { case _ => Nil })
|
val p = (token(Space) ~> repsep(StringBasic, token(Space))) | (token(EOF) map { case _ => Nil })
|
||||||
applyEffect(p)({ inputArg =>
|
applyEffect(p)({ inputArg =>
|
||||||
val arguments = inputArg.toList ++
|
val arguments = inputArg.toList ++
|
||||||
(s0.remainingCommands.toList match {
|
(s0.remainingCommands match {
|
||||||
case e :: Nil if e.commandLine == "shell" :: Nil => Nil
|
case e :: Nil if e.commandLine == "shell" => Nil
|
||||||
case xs => xs map { _.commandLine }
|
case xs => xs map { _.commandLine }
|
||||||
})
|
})
|
||||||
NetworkClient.run(arguments)
|
NetworkClient.run(arguments)
|
||||||
"exit" :: s0.copy(remainingCommands = Nil)
|
"exit" :: s0.copy(remainingCommands = Nil)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue