-
Notifications
You must be signed in to change notification settings - Fork 3
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
Readonly source-file can't watch #53
Comments
Interesting. Is this also a problem with the original cpx? |
Yes, it is also a problem with the original cpx. Another solution could be to move the chmod into the 'preserve'-section, although that may break things for current users. I can create a PR if you can give me the desired solution:
Best regards, |
Seems like this is the best option, though I think it should be an option/flagged... since it effectively ignores flags which tend to be set for a reason (even if they don't quite make sense in this context). |
The target will get the same chmod-attributes as the source. As a result in watch-mode cpx2 isn't able to update changes, if the write-bit isn't set on source.
So either the initial chmod needs to include the write-bit explicitly or just before the pipe(write) the write-bit needs to be set.
The text was updated successfully, but these errors were encountered: