Skip to content

Commit

Permalink
Merge pull request #2634 from nwholloway/eclfix_2_2
Browse files Browse the repository at this point in the history
  • Loading branch information
loos-br committed Feb 14, 2016
2 parents efebd86 + e773396 commit c3b9b53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions etc/ecl.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,9 @@ function get_swap_disks() {

function get_disk_slices($disk) {
global $g, $debug;
$slices_array = array();
$slices = trim(exec("/bin/ls " . escapeshellarg("/dev/" . $disk . "s*") . " 2>/dev/null"));
$slices = glob("/dev/" . $disk . "s*");
$slices = str_replace("/dev/", "", $slices);
if($slices == "ls: No match.")
return;
$slices_array = explode(" ", $slices);
return $slices_array;
return $slices;
}

function get_disks() {
Expand Down

0 comments on commit c3b9b53

Please sign in to comment.