mirror of
https://github.com/beego/bee.git
synced 2024-11-21 23:50:54 +00:00
Fix Bee
This commit is contained in:
parent
c693549cc6
commit
c93bda1d3c
@ -24,12 +24,12 @@ import (
|
|||||||
func fix1To2() int {
|
func fix1To2() int {
|
||||||
beeLogger.Log.Info("Upgrading the application...")
|
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)
|
err := runShell(cmdStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 1
|
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)
|
err = runShell(cmdStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user