mirror of
https://github.com/beego/bee.git
synced 2024-11-22 15:10:54 +00:00
fix #99
This commit is contained in:
parent
ad453bb3e0
commit
e23253bc23
7
new.go
7
new.go
@ -100,10 +100,13 @@ func createApp(cmd *Command, args []string) int {
|
||||
|
||||
apppath := path.Join(curpath, args[0])
|
||||
|
||||
if _, err := os.Stat(apppath); os.IsNotExist(err) == false {
|
||||
fmt.Printf("[ERRO] Path (%s) already exists\n", apppath)
|
||||
if isExist(apppath) {
|
||||
ColorLog("[ERRO] Path (%s) already exists\n", apppath)
|
||||
ColorLog("[WARN] Do you want to overwrite it? [yes|no]]")
|
||||
if !askForConfirmation() {
|
||||
os.Exit(2)
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("[INFO] Creating application...")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user