From e2b98ba7455aa05edcc025fbd978101bf41327dc Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 17 Nov 2022 14:41:53 +0800 Subject: [PATCH] [fix] setup if the app.json exist ignore --- setup/install.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/install.go b/setup/install.go index ab6780b4..754e338c 100644 --- a/setup/install.go +++ b/setup/install.go @@ -230,6 +230,13 @@ func makeDirs(root string) error { func makeInit(root string) error { files := data.AssetNames() + + // if the app.json exist ignore + file := filepath.Join("app.json") + if _, err := os.Stat(filepath.Join(root, file)); err == nil { // exists + return nil + } + for _, file := range files { if strings.HasPrefix(file, "init/") { dst := filepath.Join(root, strings.TrimPrefix(file, "init/"))