aboutsummaryrefslogtreecommitdiff
path: root/repo/.hook/cinny
diff options
context:
space:
mode:
Diffstat (limited to 'repo/.hook/cinny')
-rwxr-xr-xrepo/.hook/cinny6
1 files changed, 3 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