From b99bc289f7794056fc7815103263150eda6dea28 Mon Sep 17 00:00:00 2001 From: se7enxf Date: Thu, 5 Sep 2024 17:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=93=E5=BA=93=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=B6=85=E8=BF=873=E5=B1=82=E6=97=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/dget/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dget/main.go b/cmd/dget/main.go index 94f0365..615ebfc 100644 --- a/cmd/dget/main.go +++ b/cmd/dget/main.go @@ -46,7 +46,7 @@ func main() { tag = "latest" } partsOfPkg := strings.Split(pkg, "/") - if len(partsOfPkg) == 3 { + if len(partsOfPkg) >= 3 { registry = partsOfPkg[0] pkg = strings.Join(partsOfPkg[1:], "/") } -- Gitee