aboutsummaryrefslogtreecommitdiff
path: root/repo/.hook/cinny
diff options
context:
space:
mode:
Diffstat (limited to 'repo/.hook/cinny')
-rwxr-xr-xrepo/.hook/cinny5
1 files changed, 5 insertions, 0 deletions
diff --git a/repo/.hook/cinny b/repo/.hook/cinny
new file mode 100755
index 0000000..9d82b08
--- /dev/null
+++ b/repo/.hook/cinny
@@ -0,0 +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
+fi \ No newline at end of file