mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 21:15:56 +00:00
Update Iris tool to v.0.0.4 - Install dir now is based on $GOPATH/src
This commit is contained in:
@@ -33,6 +33,9 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
|
||||
var err error
|
||||
var size int64
|
||||
finish := make(chan bool)
|
||||
defer func() {
|
||||
finish <- true
|
||||
}()
|
||||
|
||||
go func() {
|
||||
print("\n|")
|
||||
@@ -90,7 +93,8 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
|
||||
return "", ErrFileCopy.Format(err.Error())
|
||||
}
|
||||
finish <- true
|
||||
print("OK ", size, " bytes downloaded") //we keep that here so developer will always see in the terminal if a plugin downloads something
|
||||
_ = size
|
||||
//print("OK ", size, " bytes downloaded") //we keep that here so developer will always see in the terminal if a plugin downloads something or no ?
|
||||
return fileName, nil
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user