mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
only defer on finish download
This commit is contained in:
parent
0e05c68876
commit
6af451b800
|
@ -118,7 +118,7 @@ func createPackage(packageName string, targetDir string) error {
|
||||||
app.Printf("Error while preparing main file: %#v", err)
|
app.Printf("Error while preparing main file: %#v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
InfoPrint("\n%s package was installed successfully", packageName)
|
InfoPrint("%s package was installed successfully", packageName)
|
||||||
|
|
||||||
// build & run the server
|
// build & run the server
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", ErrFileCopy.Format(err.Error())
|
return "", ErrFileCopy.Format(err.Error())
|
||||||
}
|
}
|
||||||
finish <- true
|
|
||||||
_ = size
|
_ = 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 ?
|
//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
|
return fileName, nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user