From 64d80f7b90f8d8bad95a51d97d9d332cf3cc7889 Mon Sep 17 00:00:00 2001 From: maddalax Date: Mon, 23 Sep 2024 12:11:58 -0500 Subject: [PATCH] temp out diff name --- cli/htmgo/tasks/downloadtemplate/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/htmgo/tasks/downloadtemplate/main.go b/cli/htmgo/tasks/downloadtemplate/main.go index c39b0c1..0310ea5 100644 --- a/cli/htmgo/tasks/downloadtemplate/main.go +++ b/cli/htmgo/tasks/downloadtemplate/main.go @@ -12,6 +12,7 @@ import ( "os/exec" "path/filepath" "regexp" + "strconv" "strings" "time" ) @@ -37,7 +38,7 @@ func DownloadTemplate(outPath string) { // Replace all non-alphabetic characters with an empty string newModuleName := re.ReplaceAllString(outPath, "") - tempOut := newModuleName + "_temp_" + time.Now().String() + tempOut := newModuleName + "_temp_" + strconv.FormatInt(time.Now().Unix(), 64) install := exec.Command("git", "clone", "https://github.com/maddalax/htmgo", "--depth=1", tempOut) install.Stdout = os.Stdout