Skip to content

Commit

Permalink
Merge pull request #749 from flycash/updateMd
Browse files Browse the repository at this point in the history
Fix Bee fix
  • Loading branch information
flycash authored Dec 14, 2020
2 parents 642d933 + c93bda1 commit d1611db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/commands/beefix/fix1To2.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
func fix1To2() int {
beeLogger.Log.Info("Upgrading the application...")

cmdStr := `find ./ -name '*.go' -type f -exec sed -i '' -e 's/github.com\/astaxie\/beego/github.com\/astaxie\/beego\/adapter/g' {} \;`
cmdStr := `find ./ -name '*.go' -type f -exec sed -i '' -e 's/github.com\/astaxie\/beego/github.com\/beego\/beego\/v2\/adapter/g' {} \;`
err := runShell(cmdStr)
if err != nil {
return 1
}
cmdStr = `find ./ -name '*.go' -type f -exec sed -i '' -e 's/"github.com\/astaxie\/beego\/adapter"/beego "github.com\/astaxie\/beego\/adapter"/g' {} \;`
cmdStr = `find ./ -name '*.go' -type f -exec sed -i '' -e 's/"github.com\/beego\/beego\/v2\/adapter"/beego "github.com\/beego\/beego\/v2\/adapter"/g' {} \;`
err = runShell(cmdStr)
if err != nil {
return 1
Expand Down

0 comments on commit d1611db

Please sign in to comment.