Discussion

Ask HN: Best one liner to install bash script

I'm working on a bash script and I want to make available a simple one-liner that automatically downloads and runs the install script. I've seen many variations of this one-liner. For example oh-my-zsh uses

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

What's the best way to do it? Or the most simple/pure? Is there maybe a blog post outlining the different ways?

3 points shincert 9 years ago 3 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton