add support for proxy
This commit is contained in:
parent
70d3372bf3
commit
55072ef2a7
10
pdown.sh
10
pdown.sh
@ -64,6 +64,16 @@ download() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_proxy() {
|
||||||
|
local proxy
|
||||||
|
proxy="$(yqf .proxy)"
|
||||||
|
if [[ -n "$proxy" ]]; then
|
||||||
|
export ALL_PROXY="$proxy"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
set_proxy
|
||||||
|
|
||||||
entries=".entries"
|
entries=".entries"
|
||||||
for id in $(yqf "$entries | .[] | path | .[-1]")
|
for id in $(yqf "$entries | .[] | path | .[-1]")
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user