iotex-bootstrap
iotex-bootstrap copied to clipboard
https://github.com/iotexproject/iotex-bootstrap/blob/master/184_patch/patch.sh should retry if failed to download
Otherwise it may download an incapable file like this
xxxxxx:~/iotex-var/data# cat 21522640.patch
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
<script>(function(){var js = "window['__CF$cv$params']={r:'786f95106dc8c470',m:'ZPAwTJYvgQY0tgj_QsOpdlk8P4x1XTBedn7_OcSrcSQ-1673292572-0-AYVyQkBIEqo8YHPf7uFiXri7q6/ec30QKJNNBKnwnZsMl3TRlxi/QcvQZkAmvdxUxJjOJtlKBTOZ13cfYDG2ZPgzK3oVmTuyjnvCYio+MhrFzxlkYrnu0YGFCFaav0jBFA==',s:[0x99ceb23ed8,0x5a0a97cf42],u:'/cdn-cgi/challenge-platform/h/b'};var now=Date.now()/1000,offset=14400,ts=''+(Math.floor(now)-Math.floor(now%offset)),_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/h/b/scripts/alpha/invisible.js?ts='+ts,document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.nonce = '';_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script></body>
</html>