Skip to content

Add set -e on main and preprocess.sh #5

@soichih

Description

@soichih

When something goes wrong inside preprocess.sh, the script will still return exit code 0 and main will continue running making it a bit more difficult to diagnose problem. I recommend adding the following at the top of every bash script.

set -e
set -x

set -e makes sure that script will exist as soon as something goes wrong, and set -x echos out all command executed in the script to help diagnose problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions