From 58979d88e2363a95d2604a0495d8cea234592ba5 Mon Sep 17 00:00:00 2001
From: Damian Czepierga <damian@czepierga.pl>
Date: Thu, 29 Mar 2012 14:29:07 +0200
Subject: [PATCH] [#1507852] by dczepierga: 'drush ckeditor-download' fails if
 svn not installed

---
 includes/ckeditor.drush.inc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/includes/ckeditor.drush.inc b/includes/ckeditor.drush.inc
index 00fc70b..d8dbb33 100644
--- a/includes/ckeditor.drush.inc
+++ b/includes/ckeditor.drush.inc
@@ -48,12 +48,12 @@ function ckeditor_drush_download() {
     else {
         $path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites/all/libraries/ckeditor';
     }
-
-    if (drush_shell_exec('svn checkout http://svn.ckeditor.com/CKEditor/releases/stable/ ' . $path)) {
-        drush_log(dt('CKEditor was downloaded to @path.', array('@path' => $path)), 'success');
+    $svn_cmd = 'svn checkout http://svn.ckeditor.com/CKEditor/releases/stable/ ' . $path;
+    if (drush_shell_exec($svn_cmd)) {
+        drush_log(dt('CKEditor was downloaded to !path.', array('!path' => '<code>' . $path . '</code>')), 'success');
     }
     else {
-        drush_log(dt('Drush was unable to download CKEditor to @path.', array('@path' => $path)), 'error');
+        drush_log(dt('Drush was unable to download CKEditor to !path.', array('!path' => '<code>' . $path . '</code>')) . '<br/>' . dt('Attempted command: !svn_cmd.', array('!svn_cmd' => '<code>' . $svn_cmd . '</code>')), 'error');
     }
 }
 
-- 
1.7.9.msysgit.0

