3 ms·
> curl -L https://git.io/fix-my-dns-plz https://git.io/fix-my-dns-plz | sudo bash curl... sudo... Can we please move beyond stupidity here? At least use curl
by shakna 9y ago
> curl -L https://git.io/fix-my-dns-plz https://git.io/fix-my-dns-plz | sudo bash
curl... sudo...
Can we please move beyond stupidity here?
At least use curl's pinnedpubkey flag. Anything other than a raw get piped to sudo.
---
And on another note: https://git.io/fix-my-dns-pl https://git.io/fix-my-dns-pl
> No url found for fix-my-dns-pl
- icodestuff 9y agoOn the other note, you missed the last character of the URL, so that's not terribly surprising.
- shakna 9y agoYou're right, I screwed that up. But the resulting script has this lovely gem: curl -L -o $TARGET ... chmod +x $TARGET No error management, no download integrity checking... Let's just run a fie from the web! Which can be incomplete despite the `set -e` at the start of the file.