Skip to content

Commit

Permalink
Fix Bee
Browse files Browse the repository at this point in the history
  • Loading branch information
flycash committed Dec 14, 2020
1 parent c693549 commit c93bda1
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 c93bda1

Please sign in to comment.