mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-09 10:49:35 +08:00
Chore: should not write file on file provider
This commit is contained in:
parent
b93708d929
commit
195e5be59a
@ -74,8 +74,10 @@ func (f *fetcher) Initial() (interface{}, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
|
||||
return nil, err
|
||||
if f.vehicle.Type() != File {
|
||||
if err := safeWrite(f.vehicle.Path(), buf); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
f.hash = md5.Sum(buf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user