1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 23:30:55 +00:00

Fixed bug: repeat build in Mac OS, change to check file ModTime insetad of event time

This commit is contained in:
Unknown 2013-08-15 12:52:32 +08:00
parent bf33c2b05c
commit 5486f6ee55

View File

@ -74,6 +74,7 @@ func getFileModTime(path string) int64 {
colorLog("[ERRO] Fail to open file[ %s ]", err)
return time.Now().Unix()
}
defer f.Close()
fi, err := f.Stat()
if err != nil {