From 2dc08a9e5559abb41b17eff3cbe1ddd9e7865918 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Tue, 24 Jul 2018 16:21:36 -0500 Subject: [PATCH] issue: CLI Deploy Missing Bootstrap Fix This addresses an issue introduced with 4332 where the deploy CLI breaks upon deploying to an existing location. This checks to see if there is a bootstrap file in the destination first and if so it uses that one if not uses the source. --- include/cli/modules/unpack.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/cli/modules/unpack.php b/include/cli/modules/unpack.php index a15628884..a2251ddc6 100644 --- a/include/cli/modules/unpack.php +++ b/include/cli/modules/unpack.php @@ -210,7 +210,11 @@ class Unpacker extends Module { ), $pipes); fwrite($pipes[0], "<?php - include '{$this->source}/bootstrap.php'; + if (file_exists('{$this->destination}/bootstrap.php')) + include '{$this->destination}/bootstrap.php'; + else + include '{$this->source}/bootstrap.php'; + print INCLUDE_DIR; "); fclose($pipes[0]); -- GitLab