Loading src/Helpers/Build.php +4 −2 Original line number Diff line number Diff line Loading @@ -201,12 +201,13 @@ if (empty($path)) { $path = $this->filePath; } // Pretty much faster if it is available if (file_exists($path . ".md5sum")) { $tmp = explode(" ", file_get_contents($path . '.md5sum')); $ret = $tmp[0]; } elseif ($this->commandExists('md5sum')) { $tmp = explode(" ", exec('md5sum ' . $path)); exec('md5sum ' . $path. ' > '.$path.'.md5sum'); $tmp = explode(" ", file_get_contents($path . '.md5sum')); $ret = $tmp[0]; } else { $ret = md5_file($path); Loading @@ -215,6 +216,7 @@ return $ret; } /* Getters */ /** Loading Loading
src/Helpers/Build.php +4 −2 Original line number Diff line number Diff line Loading @@ -201,12 +201,13 @@ if (empty($path)) { $path = $this->filePath; } // Pretty much faster if it is available if (file_exists($path . ".md5sum")) { $tmp = explode(" ", file_get_contents($path . '.md5sum')); $ret = $tmp[0]; } elseif ($this->commandExists('md5sum')) { $tmp = explode(" ", exec('md5sum ' . $path)); exec('md5sum ' . $path. ' > '.$path.'.md5sum'); $tmp = explode(" ", file_get_contents($path . '.md5sum')); $ret = $tmp[0]; } else { $ret = md5_file($path); Loading @@ -215,6 +216,7 @@ return $ret; } /* Getters */ /** Loading