diff --git a/src/Helpers/Build.php b/src/Helpers/Build.php index 78663e266cf271ea61b933ba4f7c4ffe0bf8dec7..cce36ffe7d7f51148666b42eabb69dc227f0027e 100644 --- a/src/Helpers/Build.php +++ b/src/Helpers/Build.php @@ -209,7 +209,8 @@ $tmp = explode(" ", file_get_contents($path . '.md5sum')); $ret = $tmp[0]; } elseif ($this->commandExists('md5sum')) { - exec('md5sum ' . $path. ' > '.$path.'.md5sum'); + $dir = rtrim($path, $this->filename); + exec("cd $dir && md5sum " . $this->filename. ' > '.$path.'.md5sum'); $tmp = explode(" ", file_get_contents($path . '.md5sum')); $ret = $tmp[0]; } else {