From 582e844cbd25280a72bd6ac5ce4c8530a389ea4a Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Fri, 15 Sep 2023 02:50:05 +0800 Subject: feat(docker): Support proxy * feat(hook): Add hook script for cinny Signed-off-by: KunoiSayami --- repo/.hook/cinny | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 repo/.hook/cinny (limited to 'repo') 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 -- cgit v1.3.1