From 6899d1c8cb3686b703ce7696154b98b666d95741 Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Mon, 22 Oct 2012 15:13:40 -0700 Subject: [PATCH] prevent NUCLEAR OPTION on failed drush crush --- modules/drush/files/kala.drush.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/drush/files/kala.drush.inc b/modules/drush/files/kala.drush.inc index 6c515f9..4ef4c5d 100644 --- a/modules/drush/files/kala.drush.inc +++ b/modules/drush/files/kala.drush.inc @@ -385,7 +385,7 @@ function kala_destroy(){ $pantheon = _kala_get_pantheon($args[0]); $pantheon['kaladb'] = str_replace("-", "_", $pantheon['site'] . "_kala"); - if ($pantheon != FALSE) { + if (isset($pantheon)) { drush_print('preparing to crush your pantheon site... this might take awhile'); @@ -407,7 +407,6 @@ function kala_destroy(){ } kala_remove_etc_hosts($pantheon['site'] . ".kala"); - drush_log('site destroyed', 'success'); }