3 ms·
The "curl | bash" usages I've seen from reputable sources avoid that by defining a single bash function f and then executing the the function as the final chara
by mark-wagner 10y ago
The "curl | bash" usages I've seen from reputable sources avoid that by defining a single bash function f and then executing the the function as the final character, i.e.:
function f {
echo "hello world"
}
f
- vhost- 10y agoTotally, this is a good way to protect from that. It's just impossible to trust that is what someone is doing without going and looking at the script unfortunately.