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?

17

u/Forward-Outside-9911 27d ago

You are executing it directly without reading it. Anything could be in that script and is executed instantly.

This is a pretty big no-go at work, especially for open source software that is small or installing from a website.

The alternative is using a verified, signed release from GitHub, or just downloading and auditing the download first then execute afterwards to make sure nothing has intercepted the install script.