4 ms·
I've started putting the preview step right inline with the curl bash instructions. curl -sL http://example.com/install.sh | less -eK && \ curl -sL htt
by tln 10y ago
I've started putting the preview step right inline with the curl bash instructions.
curl -sL http://example.com/install.sh | less -eK && \
curl -sL http://example.com/install.sh | bash
- JadeNB 10y agoThat still relies on the second `curl` fetching the same instructions as the first (an invariant that a really nasty web server wouldn't have to obey). Wouldn't it be better to use a `tee` to make sure that what you read with `less` is exactly what's executed?
- JadeNB 10y ago(For what it's worth, it turns out that this sort of nefarious invariant disrespect was discussed at https://news.ycombinator.com/item?id=11532599 https://news.ycombinator.com/item?id=11532599 .)