Skip to content

Commit

Permalink
fix: use ~ instead of full home directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
telemachus committed Nov 25, 2024
1 parent 8293142 commit 805e9cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cli/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ func (app *App) clone(repo Repo, ch chan<- result) {
repoPath := filepath.Join(app.HomeDir, defaultStorage, repo.Name)
storagePath := filepath.Join(app.HomeDir, defaultStorage)
if _, err := os.Stat(repoPath); err == nil {
prettyPath := app.PrettyPath(storagePath)
ch <- result{
isErr: false,
msg: fmt.Sprintf("%s: already present in %s", repo.Name, storagePath),
msg: fmt.Sprintf("%s: already present in %s", repo.Name, prettyPath),
}
return
}
Expand Down

0 comments on commit 805e9cd

Please sign in to comment.