Add (collect) exit codes in bash

前端 未结 7 923
执念已碎
执念已碎 2021-02-08 02:28

I need to depend on few separate executions in a script and don\'t want to bundle them all in an ugly \'if\' statement. I would like to take the exit code \'$?\' of each executi

7条回答
  •  不知归路
    2021-02-08 02:50

    If you want to use ALLOWEDERROR in your script, preface it with a $, e.g $ALLOWEDERROR.

提交回复
热议问题