They're just trying to offer an easy way to try things out and unsafe code from Firefox would be insanely harmful for their brand. Of course, if you take a moment to merely download the bash script and inspect it. It's truly not dissimilar from downloading a repository from GitHub and building it. In general, certainly, yes, you don't want to run arbitrary programs.