This commit is contained in:
cdle 2021-08-21 17:35:28 +08:00
parent 17a4834749
commit a6029cff43

View File

@ -17,6 +17,9 @@ var reposPath = ""
func (rp *Repo) init() {
rp.filename = strings.Replace(strings.Replace(rp.Git, "https://", "", -1), "/", "_", -1)
if !rp.exist() {
rp.gitClone()
}
}
func (rp *Repo) exist() bool {
@ -33,9 +36,6 @@ func initRepos() {
}
for _, repo := range Config.Repos {
repo.init()
if !repo.exist() {
repo.gitClone()
}
}
}