fix(cli): fix wrong directory for dotfiles and and override for stow
This commit is contained in:
parent
1c5dd1eb0d
commit
2b2aaede18
2 changed files with 18 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue