sindresorhus / cpy-cli

Copy files
MIT License
345 stars 33 forks source link

.sh file permission changed? #15

Closed chadbr closed 5 years ago

chadbr commented 6 years ago

I have a .sh file with +x permissions on it. When I copy it:

cpy \"**/*.sh\" \"../dist/\" --cwd=src --parents

it's execute permissions are stripped / not maintained.

Is it expected?

Thanks! Chad

sindresorhus commented 6 years ago

Permission should be preserved, otherwise it's a bug.

We do it here: https://github.com/sindresorhus/cp-file/blob/89dc5f36d248bfc9c42c853f40594b78156f64e5/index.js#L52

Would be helpful if you could submit a failing test to cp-file.

sindresorhus commented 5 years ago

I just tried to reproduce with latest cpy-cli and I cannot reproduce it. If it's still an issue, please submit a failing test.