add - separator to temp file created on ollama create

This commit is contained in:
Jeffrey Morgan 2023-11-18 09:39:52 -05:00
parent 85e4441c6a
commit bab9494176

View file

@ -673,7 +673,7 @@ func CreateBlobHandler(c *gin.Context) {
} }
hash := sha256.New() hash := sha256.New()
temp, err := os.CreateTemp(filepath.Dir(targetPath), c.Param("digest")) temp, err := os.CreateTemp(filepath.Dir(targetPath), c.Param("digest")+"-")
if err != nil { if err != nil {
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return return