News for hackers. Stuff that matters.
Re:Universal Install Script by XKCD – Combat Test by slavik81 on Monday April 18, 2016 @05:35PM (#11523331)
The line that attempts to build from source is designed to build the repository cloned from GitHub. It seems odd to remove the git clone and leave that in.

BTW, if you have git 2.3 or newer you could just disable the password prompt like so:

    GIT_TERMINAL_PROMPT=0 git clone https://github.com/"$1"/"$1" $1 2>/dev/null
Re:Universal Install Script by XKCD – Combat Test by breadbox on Monday April 18, 2016 @08:08PM (#11523994)
Feels to me like you could improve a lot of the noisiness by adding || (or) to the end of each line. So the script would stop trying things once it found something that worked. Then maybe you could reintroduce the git clone command -- coming near the end, it would rarely cause problems.
Re:Universal Install Script by XKCD – Combat Test by CiaranMcNulty on Tuesday April 19, 2016 @05:54AM (#11525875)
I think you mean &&?
Re:Universal Install Script by XKCD – Combat Test by cec on Tuesday April 19, 2016 @07:58AM (#11526325)
No. && would cause the next command to begin once the previous had successfully completed. A successful install shoudn't start the next install attempt, hence ||.

On the other hand, OP and this comment miss the beauty of Randall's implementation, which is each operation is launched asynchronously ('&'), so it isn't the case that you try a few approaches one at a time, i's that you try all approaches at the same time.

Re:Universal Install Script by XKCD – Combat Test by empath75 on Monday April 18, 2016 @04:14PM (#11522833)
Re:Universal Install Script by XKCD – Combat Test by Artemis2 on Monday April 18, 2016 @04:20PM (#11522879)
Wow, already down?! Someone get them a CloudFlare account!
Re:Universal Install Script by XKCD – Combat Test by michalskop on Monday April 18, 2016 @06:33PM (#11523596)
CloudFlare is regularly blocking me (because of dynamic address I get from my provider; I have no real choice as I live in the country and not in a city) and being out-US, CloudFlare does not care at all. It is seriously the company I hate most at the net. There are so many alternatives to CloudFlare. Let's make the world a better place and use them.
Re:Universal Install Script by XKCD – Combat Test by lifthrasiir on Monday April 18, 2016 @07:28PM (#11523832)
> [...] There are so many alternatives to CloudFlare. [...]

Please list them (especially, those that works for you) so that we can try.

Re:Universal Install Script by XKCD – Combat Test by kleptako on Monday April 18, 2016 @05:03PM (#11523145)
please, no more cloudflare
Re:Universal Install Script by XKCD – Combat Test by jpswade on Monday April 18, 2016 @05:15PM (#11523217)
Re:Universal Install Script by XKCD – Combat Test by marricks on Monday April 18, 2016 @04:35PM (#11522972)
"Wow that's awesome! This could be a new defualt way to install!"

Relevant xkcd, sort of aluded to kn the end, https://xkcd.com/927/

Re:Universal Install Script by XKCD – Combat Test by hardwaresofton on Monday April 18, 2016 @04:41PM (#11523004)
Yeah, this is just trying a bunch of different package managers to see which one will work first.

When you run into a name collisions.

If someone wanted to really make some sort of macro package manager (or package manager to end all package managers), that's one thing, but this script is just a mistake waiting to happen)

Re:Universal Install Script by XKCD – Combat Test by InclinedPlane on Monday April 18, 2016 @04:50PM (#11523056)
That's the joke. That's why it was an xkcd strip.
Re:Universal Install Script by XKCD – Combat Test by hardwaresofton on Monday April 18, 2016 @05:02PM (#11523136)
Yeah I must have missed the sarcasm in the blog post at the end...
Re:Universal Install Script by XKCD – Combat Test by mjevans on Monday April 18, 2016 @04:46PM (#11523035)
Actually it backgrounds /them all/; as the comic states in the caption text, failures can generally be ignored since one will have success.
Re:Universal Install Script by XKCD – Combat Test by hardwaresofton on Monday April 18, 2016 @05:01PM (#11523125)
But what if two succeed, but you only want one?

As someone else noted... clearly that is the joke. I got the feeling from the article that someone was seriously trying this, but i must have missed some sarcasm

Re:Universal Install Script by XKCD – Combat Test by nkrisc on Monday April 18, 2016 @05:12PM (#11523200)
They were taking the joke to its conclusion to see what happened. I think the warnings that its not really a good idea indicates they well understand it's a joke to begin with.