diff options
Diffstat (limited to 'repo/.hook')
| -rwxr-xr-x | repo/.hook/cinny | 5 |
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 |
