Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from ublue-os/clonesymlink
Browse files Browse the repository at this point in the history
fix: add symlink to fleek yaml file on clone
  • Loading branch information
bketelsen authored Mar 21, 2023
2 parents 2735e3e + fc96de0 commit 1cb96b8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,17 @@ func Clone(repo string) error {
clone.Stdout = os.Stdout
clone.Env = os.Environ()

return clone.Run()
err = clone.Run()
if err != nil {
return err
}
home, err := os.UserHomeDir()
if err != nil {
return err
}
yamlPath := filepath.Join(location, ".fleek.yml")
csym := filepath.Join(home, ".fleek.yml")
return os.Symlink(yamlPath, csym)

}

Expand Down

0 comments on commit 1cb96b8

Please sign in to comment.