3 ms·
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 someth
by breadbox 10y ago
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.
- CiaranMcNulty 10y agoI think you mean &&?
- cec 10y 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.