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

Update README.md #1545

Closed
wants to merge 1 commit into from
Closed

Update README.md #1545

wants to merge 1 commit into from

Conversation

geomat0101
Copy link

existing advice is broken, results in 'bash: /etc/apt/sources.list.d/httpie.list: Permission denied' because it is trying to redirect the output of the sudo command outside privileged context.

Converted it to a subshell invocation

existing advice is broken, results in 'bash: /etc/apt/sources.list.d/httpie.list: Permission denied' because it is trying to redirect the output of the sudo command outside privileged context.  

Converted it to a subshell invocation
@mikelolasagasti
Copy link

There's an alternative way to achieve the same result that I find more concise and readable. Instead of using the sudo sh -c approach, you could consider the following:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" |sudo tee -a /etc/apt/sources.list.d/httpie.list

@jkbrzt
Copy link
Member

jkbrzt commented Mar 4, 2024

Fixed via #1557. Thanks!

@jkbrzt jkbrzt closed this Mar 4, 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.

3 participants