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

Ensure edited file's attributes remain intact #46

Merged
merged 2 commits into from Dec 2, 2019

Conversation

maxchuquimia
Copy link
Contributor

I have a case where I create a Swift/Beak script and run chmod +x on it so that I can use it as a normal command (with #!/usr/bin/env beak run --path too)

I found that if I beak edit -p the file (amazing, by the way), upon committing the changes the file is no longer executable so I need to chmod +x again.

I've made this change and it works, however please let me know if there's a better, more PathKit-y way that you would do this ☺️

Get latest changes from yonaskolb
@yonaskolb
Copy link
Owner

Great, thanks @maxchuquimia! Could you add a changelog entry as well?

@yonaskolb
Copy link
Owner

Resolves #11

@maxchuquimia
Copy link
Contributor Author

@yonaskolb done :)

CHANGELOG.md Outdated
@@ -1,6 +1,7 @@
# Change Log

## Next Version
- Fixed edit command removes file attributes #11 @maxchuquimia
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fixed edit command removes file attributes #11 @maxchuquimia
- Fixed edit command removing file attributes #46 @maxchuquimia

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay, done!

@yonaskolb yonaskolb merged commit 0711ea4 into yonaskolb:master Dec 2, 2019
@yonaskolb
Copy link
Owner

Thanks @maxchuquimia!

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.

None yet

2 participants