Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

rjbs
Copy link
Collaborator

@rjbs rjbs commented Nov 14, 2013

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
Copy link
Owner

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
Copy link
Collaborator Author

rjbs commented Nov 14, 2013

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 added a commit that referenced this pull request Nov 14, 2013
@ingydotnet
Copy link
Owner

fixed in 71af819

@ingydotnet ingydotnet closed this Nov 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants