From ff2e72a292a13223a6361f62e1971e5a99e60b48 Mon Sep 17 00:00:00 2001 From: Henrique Moody Date: Mon, 1 Apr 2019 17:59:18 +0200 Subject: [PATCH] Install packages when "vendor/" does not exist The script that updates the database tries to execute the tests after all the data is updated even when the packages are not installed. This commit will install the packages with Composer when they are not already installed. It will assume that because you don't have the "vendor/" directory you probably didn't install the dependencies. Signed-off-by: Henrique Moody --- update_db.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update_db.sh b/update_db.sh index dbfce264..61b8f925 100755 --- a/update_db.sh +++ b/update_db.sh @@ -84,6 +84,10 @@ if [[ $? -eq 1 ]]; then fi fi +if [[ ! -e "vendor/" ]]; then + $COMPOSER_PATH install +fi + $COMPOSER_PATH test # message on success test