mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Improve cache and toolchain download (#2665)
* Improve cache and toolchain download * Cleanup
This commit is contained in:
@@ -497,7 +497,13 @@ if [[ $DOWNLOAD_MIRROR == china ]] ; then
|
||||
UBUNTU_MIRROR='mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/'
|
||||
fi
|
||||
|
||||
ARMBIAN_MIRROR='https://redirect.armbian.com'
|
||||
# don't use mirrors that throws garbage on 404
|
||||
while true; do
|
||||
|
||||
ARMBIAN_MIRROR=$(wget -SO- -T 1 -t 1 https://redirect.armbian.com 2>&1 | egrep -i "Location" | awk '{print $2}')
|
||||
[[ ${ARMBIAN_MIRROR} != *armbian.hosthatch* ]] && break
|
||||
|
||||
done
|
||||
|
||||
# For user override
|
||||
if [[ -f $USERPATCHES_PATH/lib.config ]]; then
|
||||
|
||||
Reference in New Issue
Block a user