|
|
|
|
|
by 3xblah
2325 days ago
|
|
"You can only be sure of what you're running if you download it first, examine it, then run what you downloaded." What if, before "run what you downloaded", first perform a dry run and observe it while it is running. set -x
curl https://example.com/setup.sh | bash -n
set +x
-x Execution trace-n Read commands but do not execute them https://en.wikipedia.org/wiki/Dry_run_(testing) |
|
The truth is that people download and run shell scripts without reading them all the time. For example, how many people installing software packaged with configure scripts actually read the scripts. (Except in the event they do not work.)