Skip to content

CMD bug : no exit on error #4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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