From 6af451b8001c6b99a9148e21db325417954563c5 Mon Sep 17 00:00:00 2001 From: Makis Maropoulos Date: Tue, 7 Jun 2016 12:30:29 +0300 Subject: [PATCH] only defer on finish download --- iris/main.go | 2 +- utils/file.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iris/main.go b/iris/main.go index 000210ca..39dfc9eb 100644 --- a/iris/main.go +++ b/iris/main.go @@ -118,7 +118,7 @@ func createPackage(packageName string, targetDir string) error { 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 diff --git a/utils/file.go b/utils/file.go index 2cdd8165..57b632cb 100644 --- a/utils/file.go +++ b/utils/file.go @@ -92,7 +92,7 @@ func DownloadZip(zipURL string, newDir string) (string, error) { if err != nil { return "", ErrFileCopy.Format(err.Error()) } - finish <- true + _ = 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