deploy binary works
This commit is contained in:
parent
18ab96ac84
commit
514b9313cd
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ func GitHash() string {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return string(hash)
|
||||
return strings.TrimSpace(string(hash))
|
||||
}
|
||||
|
||||
func GitBranch() string {
|
||||
|
|
Loading…
Reference in New Issue