From 766f6df05b2b3df06eb91d462be93795dcdab809 Mon Sep 17 00:00:00 2001 From: Robert Crumbaugh Date: Thu, 8 Feb 2024 14:22:58 -0800 Subject: [PATCH] better installation urls --- internal/run/run.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/run/run.go b/internal/run/run.go index 8208c9fb..3bcbc063 100644 --- a/internal/run/run.go +++ b/internal/run/run.go @@ -93,8 +93,12 @@ func Run(g Git) (*GenerationInfo, map[string]string, error) { published = true // Treat as published if we don't have an installation URL } - repoSubdirectories[targetID] = filepath.Clean(dir) - installationURLs[targetID] = installationURL + if installationURL != "" { + installationURLs[targetID] = installationURL + } + if dir != "." { + repoSubdirectories[targetID] = filepath.Clean(dir) + } } // Run the workflow