Fixed to make the command portable on BSD/Solaris.

This commit is contained in:
Loic d'Anterroches
2009-06-19 21:37:39 +02:00
parent d6c0b7a680
commit 6cf4f00f92
4 changed files with 10 additions and 10 deletions

View File

@@ -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()