From 1cbfb63abd0173b1bd0d2cda53048c9c6c5afbe3 Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Thu, 21 Jul 2022 16:42:07 +0530 Subject: [PATCH] fix to md5 sum --- src/Helpers/Build.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Helpers/Build.php b/src/Helpers/Build.php index 78663e2..cce36ff 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 { -- GitLab