Allow CLI api to specify exit code
Bug #1275617 reported by
Aaron Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Aaron Wells |
Bug Description
I just noticed a bug in the (rarely used) command-line API for Mahara. The function cli->cli_
I've written a small fix to cli_exit() to make it so that if the param is an int, we pass that raw int as the exit code, and if the param is a boolean, we use that to determine whether to pass 0 (success) or 127 (failure).
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/2979