Skip to content

Commit

Permalink
prevent NUCLEAR OPTION on failed drush crush
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Oct 22, 2012
1 parent 4e3b174 commit 6899d1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/drush/files/kala.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -407,7 +407,6 @@ function kala_destroy(){
}

kala_remove_etc_hosts($pantheon['site'] . ".kala");

drush_log('site destroyed', 'success');

}
Expand Down

0 comments on commit 6899d1c

Please sign in to comment.