From 527e02547b87e72cdd496c670dcbd788c3863b2b Mon Sep 17 00:00:00 2001 From: Dorin Geman Date: Fri, 25 Apr 2025 13:30:20 +0300 Subject: [PATCH] run: Ensure model name/tag only if it's not pulled Signed-off-by: Dorin Geman --- commands/run.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/run.go b/commands/run.go index 35bdc04d..0ca03a5e 100644 --- a/commands/run.go +++ b/commands/run.go @@ -42,8 +42,7 @@ func newRunCmd(desktopClient *desktop.Client) *cobra.Command { if err := pullModel(cmd, desktopClient, model); err != nil { return err } - } - if model != modelDetail.Tags[0] { + } else if model != modelDetail.Tags[0] { model = modelDetail.Tags[0] }