Closed rjbs closed 11 years ago
Doesn't -f check to see if symlink is a file. ie if $symlink terminates in an existing file -f $symlink
is true.
-e would also be true for directories and I'm not sure how that would play out.
Yeah, I don't mind fixing it harder, this was just enough to keep going.
if (-d $file || -l $file && -f readlink $file)
I think that's better.
fixed in 71af8192de6f3416ce013dc73be56c6177a2ec98
I was trying to install my new vim-dots, and I kept getting complaints that some file didn't exist. It did, but it was a symlink to a file elsewhere in the repo, rather than a plain file. This relaxes the check.