From 9be356b5ca48c51bae99480d4b876b28716013e3 Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Mon, 17 Jul 2017 00:01:30 -0500 Subject: [PATCH] only run composer install if there is a composer project --- add_extension.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/add_extension.sh b/add_extension.sh index 245d114..9a24a3e 100644 --- a/add_extension.sh +++ b/add_extension.sh @@ -17,4 +17,6 @@ if [[ "${EXT_VERSION}" ]]; then git checkout -b "${EXT_VERSION}" "origin/${EXT_VERSION}" fi -composer install --no-dev +if [[ -e "composer.json" ]]; then + composer install --no-dev +fi