fix(cli): fix wrong directory for dotfiles and and override for stow

This commit is contained in:
Patryk Hegenberg 2024-12-28 10:57:36 +01:00
parent 1c5dd1eb0d
commit 2b2aaede18
2 changed files with 18 additions and 9 deletions

View file

@ -24,8 +24,8 @@ func setupDotfiles(config DotfilesConfig) error {
dotfilesDir := filepath.Join(os.Getenv("HOME"), "dotfiles")
cmd := exec.Command("git", "clone", config.GitRepo)
// cmd := exec.Command("git", "clone", config.GitRepo, dotfilesDir)
//cmd := exec.Command("git", "clone", config.GitRepo)
cmd := exec.Command("git", "clone", config.GitRepo, dotfilesDir)
if err := cmd.Run(); err != nil {
return fmt.Errorf("Fehler beim Klonen der Dotfiles: %v", err)
}
@ -34,7 +34,7 @@ func setupDotfiles(config DotfilesConfig) error {
return fmt.Errorf("Fehler beim Wechseln in das Dotfiles-Verzeichnis: %v", err)
}
cmd = exec.Command("stow", ".")
cmd = exec.Command("stow", ".", "--override='*'")
if err := cmd.Run(); err != nil {
log.Printf("Fehler beim Linken: %v", err)
}