fix panic on bootstrapDevices (#12475)

Wrong index variable was used.
This commit is contained in:
Daniel Hiltgen
2025-10-01 17:39:29 -07:00
committed by GitHub
parent bc8909fb38
commit 05a43e078a

View File

@@ -456,7 +456,7 @@ func bootstrapDevices(ctx context.Context, ollamaLibDirs []string, extraEnvs []s
extra := strings.SplitN(extraEnvs[j], "=", 2)
if cmp[0] == extra[0] {
cmd.Env[i] = extraEnvs[j]
extraDone[i] = true
extraDone[j] = true
}
}
}