Fixed to make the command portable on BSD/Solaris.
This commit is contained in:
@@ -43,10 +43,10 @@ class IDF_Scm_Git extends IDF_Scm
|
||||
|
||||
public function getRepositorySize()
|
||||
{
|
||||
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -bs '
|
||||
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
|
||||
.escapeshellarg($this->repo);
|
||||
$out = split(' ', shell_exec($cmd), 2);
|
||||
return (int) $out[0];
|
||||
return (int) $out[0]*1024;
|
||||
}
|
||||
|
||||
public function isAvailable()
|
||||
|
Reference in New Issue
Block a user