Skip to content

Commit

Permalink
Merge pull request #13 from Angeart/directory_support_on_unlink
Browse files Browse the repository at this point in the history
fix of cant copy when link target was directory
  • Loading branch information
ssh0 authored Jun 30, 2018
2 parents 5913c30 + 4441aa6 commit 01e66ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dot_unlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dot_unlink() {
unlink "$currentpath"

# copy the file
cp "$abspath" "$currentpath"
cp -r "$abspath" "$currentpath"

echo "$(prmpt 1 unlink)$f"
echo "$(prmpt 2 copy)$abspath"
Expand Down

0 comments on commit 01e66ab

Please sign in to comment.