iotexproject / iotexproject/iotex-bootstrap

https://github.com/iotexproject/iotex-bootstrap/blob/master/184_patch/patch.sh should retry if failed to download

Open
#244 0 comments 0 reactions 1 assignee Claimed by @xianhuawei View on GitHub
enhancement
Dominant language
Shell
Stars
97
Forks
43
Avg merge
1h 7m
Merged PRs (30d)
2

Description

Otherwise it may download an incapable file like this

```
xxxxxx:~/iotex-var/data# cat 21522640.patch

502 Bad Gateway

502 Bad Gateway



nginx
(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();}};}})();

````

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.