fix: wkd handling for domains

This commit is contained in:
Jon Lundy committed 2020-12-18 10:33:12 -07:00
1 parent 50a3399718
commit cefa2d7874
3 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -198,7 +198,7 @@ func (app *wkdApp) createLinks(kind, name string) error {
name = strings.ToLower(name)
hash, domain := hashHuman(name)
link := filepath.Join(app.path, ".links", strings.Join([]string{kind, domain, hash}, "-"))
link := filepath.Join(app.path, ".links", strings.Join([]string{kind, hash}, "-"))
err := app.replaceLink(src, link)
if err != nil {
return err
@@ -222,7 +222,7 @@ func (app *wkdApp) removeLinks(kind, name string) error {
name = strings.ToLower(name)
hash, domain := hashHuman(name)
link := filepath.Join(app.path, ".links", strings.Join([]string{kind, domain, hash}, "-"))
link := filepath.Join(app.path, ".links", strings.Join([]string{kind, hash}, "-"))
err := os.Remove(link)
if err != nil {
return err