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

docs: replace redirection with tee command with sudo for file creation #1557

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

vostok92
Copy link
Contributor

@vostok92 vostok92 commented Feb 7, 2024

This pull request addresses an issue where using sudo-prefixed echo does not grant elevated permissions for the subsequent redirection operation, resulting in a failure to write files under /etc/apt.
By replacing the redirection with a sudo-prefixed tee command, this change ensures that files are written with root privileges, effectively resolving the permission issue. This modification is essential for operations requiring write access to protected directories.

@jkbrzt jkbrzt merged commit b934eec into httpie:master Mar 4, 2024
@jkbrzt
Copy link
Member

jkbrzt commented Mar 4, 2024

Thanks, @vostok92!

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