fix: use correct path for checking app path

This commit is contained in:
decentral1se 2021-07-30 17:07:51 +02:00
parent 064a0f271f
commit d97da9f45c
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -52,7 +52,7 @@ type App struct {
}
func (a App) EnsureExists() error {
appDir := path.Join(config.ABRA_DIR, a.Name)
appDir := path.Join(config.ABRA_DIR, "apps", strings.ToLower(a.Name))
if _, err := os.Stat(appDir); os.IsNotExist(err) {
url := fmt.Sprintf("%s/%s.git", config.REPOS_BASE_URL, a.Name)
_, err := git.PlainClone(appDir, false, &git.CloneOptions{URL: url, Tags: git.AllTags})