Fix StateOps#fail != fail

This commit is contained in:
Dale Wijnand 2017-03-27 14:38:02 +01:00
parent 317085a458
commit c7be291946
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ object State {
def fail =
{
import BasicCommandStrings.Compat.{ FailureWall => CompatFailureWall }
val remaining = s.remainingCommands.dropWhile(c => c != FailureWall && c != CompatFailureWall)
val remaining =
s.remainingCommands.dropWhile(c => c.commandLine != FailureWall && c.commandLine != CompatFailureWall)
if (remaining.isEmpty)
applyOnFailure(s, Nil, exit(ok = false))
else