diff --git a/README.md b/README.md index 04fd01c..f061ecf 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Bee is a command-line tool facilitating development of Beego-based application. To install `bee` use the `go get` command: ```bash -go get github.com/beego/bee +go get github.com/beego/bee@v1.12.3 ``` Then you can add `bee` binary to PATH environment variable in your `~/.bashrc` or `~/.bash_profile` file: @@ -25,12 +25,6 @@ Then you can add `bee` binary to PATH environment variable in your `~/.bashrc` o export PATH=$PATH:/bin ``` -> If you already have `bee` installed, updating `bee` is simple: - -```bash -go get -u github.com/beego/bee -``` - ## Basic commands Bee provides a variety of commands which can be helpful at various stages of development. The top level commands include: diff --git a/utils/utils.go b/utils/utils.go index a940670..e9656dc 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -481,6 +481,12 @@ func NoticeUpdateBee() { return } beeHome := system.BeegoHome + if !IsExist(beeHome) { + if err := os.MkdirAll(beeHome, 0755); err != nil { + beeLogger.Log.Fatalf("Could not create the directory: %s", err) + return + } + } fp := beeHome + "/.noticeUpdateBee" timeNow := time.Now().Unix() var timeOld int64