News for hackers. Stuff that matters.
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.