diff options
| author | KunoiSayami <[email protected]> | 2023-09-17 19:17:03 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-09-17 19:17:03 +0800 |
| commit | 35b38c50f9a8f0edc786265b6c21d7cf1da18666 (patch) | |
| tree | 723c03144fc5c1ba81df686e1c903179bb61bf2c /repo/.hook | |
| parent | a124e7d9b4528571819b87de99d47e274b66d3e2 (diff) | |
feat(script): Support proxy for upload
* fix(pkg): Fix liboping build
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'repo/.hook')
| -rwxr-xr-x | repo/.hook/cinny | 6 | ||||
| -rwxr-xr-x | repo/.hook/liboping | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/repo/.hook/cinny b/repo/.hook/cinny index 9d82b08..46b8c7b 100755 --- a/repo/.hook/cinny +++ b/repo/.hook/cinny @@ -1,5 +1,5 @@ #!/bin/bash -if [ -v http_proxy ]; then - sed -i "/build\(\)/a npm config set proxy socks5:\/\/$http_proxy" PKGBUILD - sed -i "/build\(\)/a npm config set https-proxy socks5:\/\/$http_proxy" PKGBUILD +if [ -v ALL_PROXY ]; then + sed -i "/build\(\)/a npm config set proxy $ALL_PROXY" PKGBUILD + sed -i "/build\(\)/a npm config set https-proxy $ALL_PROXY" PKGBUILD fi
\ No newline at end of file diff --git a/repo/.hook/liboping b/repo/.hook/liboping index 45859b0..cac2010 100755 --- a/repo/.hook/liboping +++ b/repo/.hook/liboping @@ -1,4 +1,6 @@ #!/bin/bash +exit + grep "ed44510859a300ea49331924db0" PKGBUILD && exit cat << EOF | base64 -d > 61.patch ZGlmZiAtLWdpdCBhL3NyYy9vcGluZy5jIGIvc3JjL29waW5nLmMKaW5kZXggODdjYTgxYS4uMjY4 |
