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

fix(ubuntu): chown more safely #412

Closed
wants to merge 1 commit into from

Conversation

mikehardy
Copy link

  • make sure the root of android stuff is chowned for installation of completely new things if needed
  • don't fail when recursively chowning specific android things, as they may not exist yet (i.e., platform-tools) when chown is attempted

- make sure the root of android stuff is owned for modification
- don't fail when recursively chowning specific android things, as
  they may not exist yet (i.e., platform-tools) when chown is attempted
@mikehardy
Copy link
Author

This can be considered a follow-on to #406 - which is a nice performance boost but makes assumptions about the directories existing - linux will throw a non-zero exit code if you chown something that isn't there but using a || true in the shell means that you can blindly try the chown and it's fine if it fails

@mikehardy
Copy link
Author

chown not required at all anymore it seems - less code == better

#409 (comment)

@mikehardy mikehardy closed this Oct 11, 2024
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.

1 participant