darwin patch

This commit is contained in:
Henrique Dias 2016-02-22 21:34:52 +00:00
parent b30079509d
commit 1da6363db7
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,10 @@ func Install() string {
ftorename := bin + "/" + strings.Replace(filename, ".tar.gz", "", 1)
if runtime.GOOS == "darwin" {
ftorename = bin + "/" + strings.Replace(filename, ".zip", "", 1)
}
if runtime.GOOS == "windows" {
ftorename = bin + "/" + strings.Replace(filename, ".zip", ".exe", 1)
}