installer does not return exit status > 1 on fail #855

Closed
mvriel opened this Issue Jun 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

mvriel commented Jun 29, 2012

The following reproduction scenario is an example where the installer does not return an exit status.
This hinders tool chain vendors to detect errors in the execution causing dependent applications (such as the phpDocumentor installer) to continue executing while the installation failed.

$ cd /tmp
$ wget http://getcomposer.org/installer
...
$ php installer --install-dir="doesnotexist"
All settings correct for using Composer
The defined install dir (doesnotexist) does not exist.
$ echo $?
0

Seldaek added a commit to composer/getcomposer.org that referenced this issue Jun 30, 2012

Owner

Seldaek commented Jun 30, 2012

Fixed, thanks for reporting

@Seldaek Seldaek closed this Jun 30, 2012

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