From 5f850f6c4a98a2756897eba59fb76f73a527a749 Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Thu, 27 Nov 2014 11:44:14 +0100 Subject: [PATCH] error out if composer.phar isn't executable --- bin/compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 6edee5033..1c769ab04 100755 --- a/bin/compile +++ b/bin/compile @@ -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 "$@" }