Skip to content

Commit 20ba347

Browse files
Fix bug in drush_tarball_extract that caused the wrong thing to be returned in the file list if $destination was specified when a zip file was extracted.
1 parent 5309a69 commit 20ba347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/drush.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ function drush_tarball_extract($path, $destination = FALSE, $listing = FALSE) {
972972
// Remove the header line.
973973
array_shift($output);
974974
// Remove the prefix verb from each line.
975-
$output = array_map(create_function('$str', 'return substr($str, strpos($str, ":") + 3 + ' . strlen(dirname($path)) . ');'), $output);
975+
$output = array_map(create_function('$str', 'return substr($str, strpos($str, ":") + 3 + ' . strlen($destination) . ');'), $output);
976976
// Remove any remaining blank lines.
977977
$return = array_filter($output, create_function('$str', 'return $str != "";'));
978978
}

0 commit comments

Comments
 (0)