diff --git a/cmd/nvidia-ctk/hook/create-symlinks/create-symlinks.go b/cmd/nvidia-ctk/hook/create-symlinks/create-symlinks.go index 9eed0976..8fe92e32 100644 --- a/cmd/nvidia-ctk/hook/create-symlinks/create-symlinks.go +++ b/cmd/nvidia-ctk/hook/create-symlinks/create-symlinks.go @@ -74,7 +74,7 @@ func (m command) build() *cli.Command { }, &cli.StringSliceFlag{ Name: "link", - Usage: "Specify a specific link to create. The link is specified as source:target", + Usage: "Specify a specific link to create. The link is specified as target::link", Destination: &cfg.links, }, &cli.StringFlag{ @@ -145,7 +145,7 @@ func (m command) run(c *cli.Context, cfg *config) error { links := cfg.links.Value() for _, l := range links { - parts := strings.Split(l, ":") + parts := strings.Split(l, "::") if len(parts) != 2 { m.logger.Warnf("Invalid link specification %v", l) continue diff --git a/internal/discover/symlinks.go b/internal/discover/symlinks.go index 6430fc15..b758100b 100644 --- a/internal/discover/symlinks.go +++ b/internal/discover/symlinks.go @@ -117,7 +117,7 @@ func (d symlinks) getSpecificLinkArgs() ([]string, error) { } linkPath := filepath.Join(filepath.Dir(m.Path), link) - links = append(links, "--link", fmt.Sprintf("%v:%v", target, linkPath)) + links = append(links, "--link", fmt.Sprintf("%v::%v", target, linkPath)) linkProcessed[link] = true }