107

curl: add support for a "--rootme" command line parameter by lamby · P...

 6 years ago
source link: https://github.com/curl/curl/pull/2444
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Passing this parameter will download the specified URLs and execute them via sudo(8) using sh(1), saving countless keystrokes when installing modern software.For example:$ curl --rootme https://people.debian.org/~lamby/install.shIs equivalent to:$ curl -qs https://people.debian.org/~lamby/install.sh | sudo sh -Errors that occur when executing sudo(8) are marked with new CURLE_ROOTME internal error code (94), otherwise we wrap the return code of the executed script itself.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK