From 026646cc46e8084791ce855fb2d7162076da3469 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Thu, 4 Sep 2014 16:29:48 -0700 Subject: [PATCH] Forgot to stage the gpm with last commit --- bin/gpm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/gpm b/bin/gpm index 0bd8b9d08..cb29b2b57 100755 --- a/bin/gpm +++ b/bin/gpm @@ -5,6 +5,13 @@ if (version_compare($ver = PHP_VERSION, $req = '5.4.0', '<')) { exit(sprintf("You are running PHP %s, but Grav needs at least PHP %s to run.\n", $ver, $req)); } +if (!file_exists(__DIR__ . '/../vendor')){ + // Before we can even start, we need to run composer first + echo "Preparing to install vendor dependencies...\n\n"; + echo system('php bin/composer.phar --working-dir="'.__DIR__.'/../" --no-interaction install'); + echo "\n\n"; +} + use Symfony\Component\Console\Application; use Grav\Common\Grav;