Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
🤐 delete tale dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Sep 10, 2017
1 parent 96c90cb commit 9ad128f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tale-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func doUpgrade(ctx *cli.Context) {
fmt.Println("开始下载最新版tale安装包, 客官请稍等...")
os.Remove(taleZipName)
//// 下载tale.zip

DownloadFile(taleDownloadUrl, "./")
Unzip(taleZipName, "./")
fmt.Println(" 正在升级...")
Expand All @@ -166,6 +167,7 @@ func doUpgrade(ctx *cli.Context) {
os.Rename("./tale/resources/templates/install.html", "./resources/templates/install.html")

RemoveContents("tale")
os.Remove("tale")

fmt.Println("Tale 升级成功, 请手动启动.")

Expand Down

0 comments on commit 9ad128f

Please sign in to comment.