🐛 Fix the missing / in image URL

This commit is contained in:
M. Mert Yildiran
2023-01-29 03:30:23 +03:00
parent 4eeab41e6d
commit a9fdde4110

View File

@@ -1,6 +1,9 @@
package docker
import "fmt"
import (
"fmt"
"strings"
)
const (
hub = "hub"
@@ -18,7 +21,11 @@ func GetRegistry() string {
}
func SetRegistry(value string) {
registry = value
if strings.HasPrefix(value, "docker.io/kubeshark") {
registry = "docker.io/kubeshark/"
} else {
registry = value
}
}
func GetTag() string {