Skip to content

CMD bug : no exit on error #4

@Tauop

Description

@Tauop

this line has to be corrected.
eval "(${command}) ${outputs} || ( r=$?; F() { KO '$*'; return $1; }; F $r; )"

When the ${command} return non-nul value, KO() is called, which call FATAL() and exit 1. As we are in a subshell (parenthesis), the exit make the subshell exit, instead of the parent script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions