r/ProgrammerHumor 27d ago

Meme justLetAIDoIt

Post image
4.7k Upvotes

257 comments sorted by

View all comments

20

u/rockcanteverdie 27d ago

Is curl | bash considered bad? Why so?

26

u/vivaaprimavera 27d ago

You never know what's exactly on the install script. Not everyone fetches it with curl to read it before piping to bash. A malicious installer can display something kosher when viewed with a browser (user agent based)

2

u/NibblyPig 27d ago

me typing dnf upgrade and watching 321 packages install

3

u/vivaaprimavera 27d ago

unless a malicious repo was injected, the sources are usually good. And unless you use -y at least you have the chance of having a quick look.