cli icon indicating copy to clipboard operation
cli copied to clipboard

Update README.md

Open geomat0101 opened this issue 2 years ago • 1 comments

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

geomat0101 avatar Dec 09 '23 12:12 geomat0101

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

mikelolasagasti avatar Dec 13 '23 16:12 mikelolasagasti

Fixed via #1557. Thanks!

jkbrzt avatar Mar 04 '24 14:03 jkbrzt