aboutsummaryrefslogtreecommitdiff
path: root/repo/.hook
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-09-15 02:50:05 +0800
committerKunoiSayami <[email protected]>2023-09-15 02:50:05 +0800
commit582e844cbd25280a72bd6ac5ce4c8530a389ea4a (patch)
tree2c14e7e3a18c0c621d81bb843ccaa63ada1ded9a /repo/.hook
parentc0573d9a8d77b63b7d792103ba823fac6b828d85 (diff)
feat(docker): Support proxy
* feat(hook): Add hook script for cinny Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'repo/.hook')
-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