forked from goffee/goffee
update go
This commit is contained in:
parent
03d04bbf43
commit
e4563d161e
4 changed files with 109 additions and 338 deletions
|
|
@ -115,8 +115,8 @@ var newCmd = &cobra.Command{
|
|||
|
||||
projectPath := pwd + "/" + projectName
|
||||
|
||||
//remove .github folder
|
||||
os.RemoveAll(projectPath + "/.github")
|
||||
//remove .git folder
|
||||
os.RemoveAll(projectPath + "/.git")
|
||||
|
||||
// copy the env file
|
||||
CopyFile(filepath.Join(projectPath, ".env-example"), projectPath, ".env")
|
||||
|
|
@ -267,7 +267,7 @@ func (cn *CmdNew) Unpack(filePath string, destPath string) {
|
|||
defer file.Close()
|
||||
|
||||
// Unpack it
|
||||
_, err = unpackit.Unpack(file, destPath)
|
||||
err = unpackit.Unpack(file, destPath)
|
||||
if err != nil {
|
||||
fmt.Println("error unpacking the downloaded release")
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue