The current behavior creates a file named ~/bin if ~/bin/ does not exist, which is a bit weird.
I propose to check whether ~/bin exist before attempting the copy.
Another solution would have been to create the directory ~/bin before attempting the copy.
The current behavior creates a file named ~/bin if ~/bin/ does not exist, which is a bit weird. I propose to check whether ~/bin exist before attempting the copy. Another solution would have been to create the directory ~/bin before attempting the copy.