We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4a506 commit 723a0b3Copy full SHA for 723a0b3
src/Task.php
@@ -50,15 +50,15 @@ public function build():bool {
50
$changes = false;
51
52
foreach(Glob::glob($this->absolutePath) as $matchedPath) {
53
- $md5 = md5_file($matchedPath);
54
- $existingMd5 = $this->fileHashList[$matchedPath] ?? null;
+ $hash = filemtime($matchedPath);
+ $existingHash = $this->fileHashList[$matchedPath] ?? null;
55
56
- if($md5 !== $existingMd5) {
+ if($hash !== $existingHash) {
57
$this->execute();
58
$changes = true;
59
}
60
61
- $this->fileHashList[$matchedPath] = $md5;
+ $this->fileHashList[$matchedPath] = $hash;
62
63
64
return $changes;
0 commit comments