Skip to content

When running multiple commands error is only reported if the last command fails #125

@mqasimsarfraz

Description

@mqasimsarfraz

When running multiple commands as part of a block, error is only reported if the last command fails.

→ cat /tmp/test.md 
# Hello

```bash
doesnotexit
echo "Hello"
```
→ ie execute /tmp/test.md 
Hello
1. Hello
        
  ✔ doesnotexit
    echo "Hello"

  Hello

As you can see doesnotexit fails but the execution is marked successful. Perhaps there should be a way to do set -e for such blocks?

Usecase:

I was testing my README.md as part of CI and only found out the issue only once I moved the failing command to independent block.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions