6

Today XKCD posted this shell script:

install.sh

Alt-text:

The failures usually don't hurt anything, and if it installs several versions, it increases the chance that one of them is right. (Note: The 'yes' command and '2>/dev/null' are recommended additions.)

Would using such a script which tries all kinds of possible installation methods until it finds one which works be a good idea?


Bonus question: could you think of any additional installation methods which should be added to this script?

dr_
  • 29,602
Philipp
  • 179
  • 5
    Not really, no, but it's hilarious. – frostschutz Mar 11 '16 at 11:41
  • Love xkcd and What If? 2. Mixed use of sudo implies non root installation otherwise. 3. Would chain commands in the foreground with || 4. Cross-OS scripts/utilities are a noble effort / idea, but a long-term pain. 5. Still love xkcd :)
  • – Jeff Schaller Mar 11 '16 at 12:00
  • 8
    Ugh, how did this get closed? It is important that people know not to take this script seriously, because running it is a terrible idea. – Kyle Strand Mar 11 '16 at 18:11
  • @KyleStrand Feel free to vote to reopen. It takes 5 votes to reopen, or a mods intervention. – Faheem Mitha Mar 11 '16 at 23:51
  • 1
    @FaheemMitha I would, but I have about 200 rep. That is not sufficient. – Kyle Strand Mar 12 '16 at 00:26