deploy binary works

This commit is contained in:
Dan Ballard 2014-12-13 09:20:35 -08:00
parent 18ab96ac84
commit 514b9313cd
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ func checkDeployDir() string {
}
githash := warren.GitHash()
dst := "deploy/" + githash + "/"
dst := "deploy/" + githash
_, err = os.Stat(dst)
if err != nil {
os.Mkdir(dst, os.ModeDir|0777)
@ -54,6 +54,6 @@ func deployRun(cmd *Command, args ...string) {
fmt.Println(files)
for _, file := range files {
cp(dst+file, file)
cp(dst+"/"+file, file)
}
}

View File

@ -13,7 +13,7 @@ func GitHash() string {
if err != nil {
log.Fatal(err)
}
return string(hash)
return strings.TrimSpace(string(hash))
}
func GitBranch() string {