Skip to content

Commit

Permalink
error out if composer.phar isn't executable
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed Nov 27, 2014
1 parent e56089b commit 5f850f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ status "Installing dependencies..."

# check if we should use a composer.phar version bundled with the project
if [[ -f "composer.phar" ]]; then
$engine_r 'new Phar("composer.phar");' &> /dev/null || error "Found composer.phar in root directory, but it appears corrupted!"
[[ -x "composer.phar" ]] || error "composer.phar in root directory is not executable; 'chmod a+x' it!"
$engine_r 'new Phar("composer.phar");' &> /dev/null || error "ERROR: Found composer.phar in root directory, but it appears corrupted!"
composer() {
$engine composer.phar "$@"
}
Expand Down

0 comments on commit 5f850f6

Please sign in to comment.