ingydotnet / ...

Dot Dot Dot
110 stars 23 forks source link

don't give up on symlinks amongst files to install #8

Closed rjbs closed 11 years ago

rjbs commented 11 years ago

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.

ingydotnet commented 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.

rjbs commented 11 years ago

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.

ingydotnet commented 11 years ago

fixed in 71af8192de6f3416ce013dc73be56c6177a2ec98