x
This commit is contained in:
parent
17a4834749
commit
a6029cff43
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user