add support for proxy

This commit is contained in:
Balakrishnan Balasubramanian 2023-02-14 18:10:04 -05:00
parent 70d3372bf3
commit 55072ef2a7

View File

@ -64,6 +64,16 @@ download() {
done
}
set_proxy() {
local proxy
proxy="$(yqf .proxy)"
if [[ -n "$proxy" ]]; then
export ALL_PROXY="$proxy"
fi
}
set_proxy
entries=".entries"
for id in $(yqf "$entries | .[] | path | .[-1]")
do