Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Skip installing composer if already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jan 17, 2016
1 parent ef01fa6 commit 2f1c3c0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,17 @@ function install_tools {

# Install Composer
if [ -e composer.json ] && [ -z "$SKIP_COMPOSER" ]; then
curl -s http://getcomposer.org/installer | php && php composer.phar install
if command -v composer >/dev/null 2>&1; then
(
cd "$TEMP_TOOL_PATH"
download "http://getcomposer.org/installer" composer-installer.php
php composer-installer.php
mv composer.phar composer
chmod +x composer
)
fi

composer install
fi
}

Expand Down

0 comments on commit 2f1c3c0

Please sign in to comment.