|
|
|
|
|
by e12e
1810 days ago
|
|
Depends. On windows an installer might be signed. On Linux a package should be signed. You can't know that curl and your browser get the same data - but you can for example split it up: curl https://pyenv.run -o install.sh
#examine install.sh
bash install.sh
Ed: or just "save as" like with an installer.Piping straight to bash can be especially bad if you've cached sudo credentials for the current session - some of these scripts call sudo "inside". Otoh - the connection is signed (it's https)-unfortunately it's often quite easy to compromise a web site. Obviously, listing gpg signatures on the same page doesn't add much unless it's possible to verify the gpg key some other way. Ed: another problem is that you really should check exactly what's in you clipboard before pasting to a terminal. |
|