Merge branch 'master' into cli_colors

This commit is contained in:
bergquist
2016-03-16 14:17:35 +01:00
151 changed files with 6136 additions and 659 deletions
@@ -15,6 +15,7 @@ import (
"os"
"path"
"regexp"
"strings"
)
func validateInput(c CommandLine, pluginFolder string) error {
@@ -156,7 +157,11 @@ func downloadFile(pluginName, filePath, url string) (err error) {
} else {
dst, err := os.Create(newFile)
if err != nil {
log.Errorf("%v", err)
if strings.Contains(err.Error(), "permission denied") {
return fmt.Errorf(
"Could not create file %s. permission deined. Make sure you have write access to plugindir",
newFile)
}
}
defer dst.Close()
src, err := zf.Open()