Skip to content

Commit

Permalink
Merge pull request #96 from pitkley/fix-wrong-messages
Browse files Browse the repository at this point in the history
Show correct source during `fs.backup`
  • Loading branch information
Gertjan Roggemans committed May 18, 2018
2 parents 753852e + 6cf15d1 commit e6fa1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fs.bash
Expand Up @@ -69,7 +69,7 @@ fs.backup() {

# remove broken symlink
if fs.is_broken_symlink "$original"; then
msg.dim "rm ~/$name (broken link to $(readlink "$original"))"
msg.dim "rm $(path.relative_to_home "$original") (broken link to $(readlink "$original"))"
rm "$original"
return
fi
Expand All @@ -81,7 +81,7 @@ fs.backup() {

# if file exists and is a symlink to ellipsis, remove
if fs.is_ellipsis_symlink "$original"; then
msg.dim "rm ~/$name (linked to $(path.relative_to_packages "$(readlink "$original")"))"
msg.dim "rm $(path.relative_to_home "$original") (linked to $(path.relative_to_packages "$(readlink "$original")"))"
rm "$original"
return
fi
Expand Down

0 comments on commit e6fa1e7

Please sign in to comment.