Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 7ce2cae

Browse files
authored
Merge pull request #37 from doringeman/fix-model-run-panic
run: Ensure model name/tag only if it's not pulled
2 parents ec8752b + 527e025 commit 7ce2cae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commands/run.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ func newRunCmd(desktopClient *desktop.Client) *cobra.Command {
4242
if err := pullModel(cmd, desktopClient, model); err != nil {
4343
return err
4444
}
45-
}
46-
if model != modelDetail.Tags[0] {
45+
} else if model != modelDetail.Tags[0] {
4746
model = modelDetail.Tags[0]
4847
}
4948

0 commit comments

Comments
 (0)