mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 03:46:47 +00:00
fix: file not change modify time when updated rule
This commit is contained in:
1 parent
a38b2bcb6d
commit
573be855f7
1 file changed
+1
@@ -100,6 +100,7 @@ func (f *fetcher) Update() (interface{}, bool, error) {
|
||||
hash := md5.Sum(buf)
|
||||
if bytes.Equal(f.hash[:], hash[:]) {
|
||||
f.updatedAt = &now
|
||||
os.Chtimes(f.vehicle.Path(), now, now)
|
||||
return nil, true, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user