[FEATURE] Set exit status in CLI scripts
authorThorsten Kahler <thorsten.kahler@dkd.de>
Sun, 12 Feb 2012 23:04:23 +0000 (00:04 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Wed, 15 Feb 2012 19:22:10 +0000 (20:22 +0100)
commitfaa0451ebef91b52b5392d9f184db6f06aba7c6d
treed7199d5758e8a08ca3f8eca0190c2156b7ee6d36
parent7e610eaae3b4c5cf6175e8f48b626d302bc3efb0
[FEATURE] Set exit status in CLI scripts

Shell commands usually set the exit status > 0 in case an error occured.
This change sets the exit status if the CLI script invocation fails or
an exception is thrown by the CLI script so failed executions can be
detected.

Change-Id: Idfc9cd76657c9b83a2bcc83d0b9f8bdd0e2d1bca
Resolves: #28700
Releases: 4.7
Reviewed-on: http://review.typo3.org/8999
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_beuserauth.php
typo3/cli_dispatch.phpsh
typo3/init.php