“Should I pipe it?”

So, fellow developers, you know how we’re all told not to pipe installation scripts into our shells and yet we all do it anyway? I just rolled a little something that might help with that…

Here’s an example of the nvm install script, verified by yours truly:


What do you think?

Anyone with a GitHub account can help verify installation scripts (would be good to have two more for nvm).

Instructions: github.com/small-tech/should-i

Thoughts? :)

@aral can this all be done through the terminal?

@brad Hey Bradley, about to hit the sack as it’s past 1AM here but let me know what you had in mind. Do you mean something that returns a very basic version that you can curl/wget? Would like to understand your use case :) (Will check back tomorrow.)

@aral Yes, that is basically what I had in mind. Something with curl to at least show that bit that says "It looks fine to us..." (or the opposite if it doesn't look fine). Since you're typically doing the piping in the shell, you could make some way to easily check it in the shell as well.

@brad Gotcha, thanks. Will have a think :)

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!