summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2018-03-27 17:26:12 (GMT)
committerJon Pugh2018-03-27 17:26:12 (GMT)
commit9ae6fe87f8359edd4c065fff50b1b4d5b0c2d1be (patch)
tree4a67b02d2dd4685a1aac4d8b1e1205511085099d
parent5e91af7b698e421e9204d662a10128e8280cb3ab (diff)
Show different messages for composer install if warnings were detected.hosting-docker
-rw-r--r--platform/verify.provision.inc17
1 files changed, 13 insertions, 4 deletions
diff --git a/platform/verify.provision.inc b/platform/verify.provision.inc
index 1c604c8..e3abacc 100644
--- a/platform/verify.provision.inc
+++ b/platform/verify.provision.inc
@@ -119,10 +119,19 @@ function drush_provision_drupal_pre_provision_verify() {
$log_status = strpos($output, 'Warning:') === FALSE? 'success': 'warning';
drush_log($output, $log_status);
- drush_log(dt(strpos($output, 'Warning:') . "Command ran successfully in @times: @command", array(
- '@command' => $command,
- '@time' => $stop - $start,
- )), $log_status);
+
+ if ($log_status == 'success') {
+ drush_log(dt("Command ran successfully in @times: @command", array(
+ '@command' => $command,
+ '@time' => $stop - $start,
+ )), $log_status);
+ }
+ else {
+ drush_log(dt("Command ran successfully (with warnings) in @times: @command", array(
+ '@command' => $command,
+ '@time' => $stop - $start,
+ )), $log_status);
+ }
}
else {
drush_log(implode("\n", drush_shell_exec_output()), 'error');