forked from goffee/goffee
fix uncompress to forgego
This commit is contained in:
parent
48584d061c
commit
c4a9bd8a01
2 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue