temp out diff name
This commit is contained in:
parent
4de383fb85
commit
64d80f7b90
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
@ -37,7 +38,7 @@ func DownloadTemplate(outPath string) {
|
||||||
// Replace all non-alphabetic characters with an empty string
|
// Replace all non-alphabetic characters with an empty string
|
||||||
newModuleName := re.ReplaceAllString(outPath, "")
|
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 := exec.Command("git", "clone", "https://github.com/maddalax/htmgo", "--depth=1", tempOut)
|
||||||
install.Stdout = os.Stdout
|
install.Stdout = os.Stdout
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue