4 ms·
Universal Install Script by XKCD – Combat Test
- empath75 11y agocached version: http://webcache.googleusercontent.com/search?q=cache:b4rsDCg1gCAJ:www.ocsmag.com/2016/04/16/universal-install-script-by-xkcd-combat-test/&num=1&hl=en&gl=us&strip=1&vwsrc=0 http://webcache.googleusercontent.com/search?q=cache:b4rsDCg...
- Artemis2 11y agoWow, already down?! Someone get them a CloudFlare account!
- kleptako 11y agoplease, no more cloudflare
- michalskop 11y agoCloudFlare 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.
- lifthrasiir 11y ago> [...] There are so many alternatives to CloudFlare. [...] Please list them (especially, those that works for you) so that we can try.
- marricks 11y ago"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/ https://xkcd.com/927/
- hardwaresofton 11y agoYeah, 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)
- mjevans 11y agoActually it backgrounds /them all/; as the comic states in the caption text, failures can generally be ignored since one will have success.
- hardwaresofton 11y agoBut 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
- nkrisc 11y agoThey 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.
- InclinedPlane 11y agoThat's the joke. That's why it was an xkcd strip.
- hardwaresofton 11y agoYeah I must have missed the sarcasm in the blog post at the end...
- jpswade 11y agohttps://gist.github.com/jpswade/b5907dbb7210812d941040b3ebfbc504 https://gist.github.com/jpswade/b5907dbb7210812d941040b3ebfb...
- slavik81 11y agoThe 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
- breadbox 11y agoFeels 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.
- CiaranMcNulty 11y agoI think you mean &&?
- cec 11y agoNo. && 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.