Unverified Commit 05a43e07 authored by Daniel Hiltgen's avatar Daniel Hiltgen Committed by GitHub
Browse files

fix panic on bootstrapDevices (#12475)

Wrong index variable was used.
parent bc8909fb
...@@ -456,7 +456,7 @@ func bootstrapDevices(ctx context.Context, ollamaLibDirs []string, extraEnvs []s ...@@ -456,7 +456,7 @@ func bootstrapDevices(ctx context.Context, ollamaLibDirs []string, extraEnvs []s
extra := strings.SplitN(extraEnvs[j], "=", 2) extra := strings.SplitN(extraEnvs[j], "=", 2)
if cmp[0] == extra[0] { if cmp[0] == extra[0] {
cmd.Env[i] = extraEnvs[j] cmd.Env[i] = extraEnvs[j]
extraDone[i] = true extraDone[j] = true
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment