update cmd run to wait

This commit is contained in:
Jay 2019-03-05 17:07:05 +08:00
parent 2b94bc01ec
commit fd5a5fcd1c

View File

@ -24,8 +24,11 @@ func main() {
}
func downloadGeoDB() {
log.Println("start download new geoip db")
cmd := exec.Command("/usr/bin/download-geodb.sh")
err := cmd.Run()
cmd.Start()
err := cmd.Wait()
if err != nil {
log.Printf("command run fail:: %v \n", err)
}