1
0
Fork 0
forked from goffee/goffee

fix uncompress to forgego

This commit is contained in:
Zeni Kim 2024-09-18 11:55:36 -05:00
parent 48584d061c
commit c4a9bd8a01
2 changed files with 4 additions and 5 deletions

View file

@ -79,7 +79,7 @@ var newCmd = &cobra.Command{
os.Exit(0)
}
// Download the config from github
// Download the config from git.smarteching.com
fmt.Println("Preparing ...")
var config Config
@ -109,7 +109,7 @@ var newCmd = &cobra.Command{
cn.Unpack(filePath, pwd)
// Rename to the user's given project name
os.Rename("./cup-"+removeFirstCHar(repoMeta.TagName), "./"+projectName) //first char is `v`
os.Rename("./cup", "./"+projectName) //first char is `v`
// Remove the downloaded cup archive
os.Remove(filePath)