Skip to content

[Feature]: Stop scripts executions on error #1457

@Akiyamka

Description

@Akiyamka

Let's consider a simple case

{
  "packages": [ "..."],
  "env": { "...": "..." },
  "shell": {
    "scripts": {
      "start": [
        "bash ./check_something.sh",
        "bash ./do_some_long_and_verbose_task.sh"
      ]
    }
  }
}

Right now if check_something.sh exit with error, script do_some_long_task.sh executed despite that.
If do_some_long_task generate a lot of debug info in stdout, developer even not have a chance to see error from first script in terminal

Possible solution:

I expect that devbox check exit code of every script and stop execution on first exit with error.
In simple words - it would be cool if it will work like ./check_something.sh && ./do_some_long_task.sh syntax.
(that can be used as workaround right now, but it less readable and not cross platform)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Status

    Merged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions