mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-15 02:07:03 +00:00
ignore non blobs
This commit is contained in:
@@ -782,8 +782,10 @@ func PruneLayers() error {
|
|||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
name = strings.ReplaceAll(name, "-", ":")
|
name = strings.ReplaceAll(name, "-", ":")
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(name, "sha256:") {
|
||||||
deleteMap[name] = struct{}{}
|
deleteMap[name] = struct{}{}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("total blobs: %d", len(deleteMap))
|
log.Printf("total blobs: %d", len(deleteMap))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user