It can be detected if your adversaries are clever enough: https://lukespademan.com/blog/the-dangers-of-curlbash/
It’s good practice to check anything that you’ll pipe to `sudo`, but this article’s level of paranoia is kind of self-defeating, no?
At some point, we all trust the things we run on our machines. We rely on communities — and our participation in them — to vet installations.
There is no perfect solution. Someone will always be misled.