diff --git a/libraries.drush.inc b/libraries.drush.inc index ef379a4..e77446c 100644 --- a/libraries.drush.inc +++ b/libraries.drush.inc @@ -124,6 +124,7 @@ function libraries_drush_download($name) { $file_list = drush_tarball_extract($path, $temporary_base, TRUE); // Move untarred directory to a directory with the same name as the library's machine name. + $file_list = array_values($file_list); $library_dir = drush_trim_path($file_list[0]); if ($library_dir !== $library['machine name']) { drush_move_dir($temporary_base . DIRECTORY_SEPARATOR . $library_dir, $temporary_base . DIRECTORY_SEPARATOR . $library['machine name']);