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

Commit

Permalink
fix: add symlink to fleek yaml file on clone
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Mar 21, 2023
1 parent 2735e3e commit fc96de0
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 fc96de0

Please sign in to comment.