File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ Enjoy, Have Fun!
1919
2020```
2121# Mac/AMD64
22- curl -s -L " https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]* -darwin-amd64.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
22+ curl -s https://api. github.com/repos/ qiniu/goc/releases/latest | grep "browser_download_url.* -darwin-amd64.tar.gz" | cut -d : -f 2,3 | tr -d \" | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
2323
2424# Linux/AMD64
25- curl -s -L " https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]* -linux-amd64.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
25+ curl -s https://api. github.com/repos/ qiniu/goc/releases/latest | grep "browser_download_url.* -linux-amd64.tar.gz" | cut -d : -f 2,3 | tr -d \" | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
2626
2727# Linux/386
28- curl -s -L " https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]* -linux-386.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
28+ curl -s https://api. github.com/repos/ qiniu/goc/releases/latest | grep "browser_download_url.* -linux-386.tar.gz" | cut -d : -f 2,3 | tr -d \" | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
2929
3030```
3131
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ goc 是专为 Go 语言打造的一个综合覆盖率收集系统,尤其适合
2020
2121```
2222# Mac/AMD64
23- curl -s -L " https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]* -darwin-amd64.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
23+ curl -s https://api. github.com/repos/ qiniu/goc/releases/latest | grep "browser_download_url.* -darwin-amd64.tar.gz" | cut -d : -f 2,3 | tr -d \" | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
2424
2525# Linux/AMD64
26- curl -s -L " https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]* -linux-amd64.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
26+ curl -s https://api. github.com/repos/ qiniu/goc/releases/latest | grep "browser_download_url.* -linux-amd64.tar.gz" | cut -d : -f 2,3 | tr -d \" | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
2727
2828# Linux/386
29- curl -s -L " https://github.com/qiniu/goc/releases/latest" | sed -nE 's!.*"([^"]* -linux-386.tar.gz)".*!https://github.com\1!p' | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
29+ curl -s https://api. github.com/repos/ qiniu/goc/releases/latest | grep "browser_download_url.* -linux-386.tar.gz" | cut -d : -f 2,3 | tr -d \" | xargs -n 1 curl -L | tar -zx && chmod +x goc && mv goc /usr/local/bin
3030
3131```
3232
You can’t perform that action at this time.
0 commit comments