mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Bugfix - fixing wrong value extraction
Closes https://github.com/armbian/build/issues/2672
This commit is contained in:
@@ -500,7 +500,7 @@ fi
|
||||
# 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=$(wget -SO- -T 1 -t 1 https://redirect.armbian.com 2>&1 | egrep -i "Location" | awk '{print $2}' | head -1)
|
||||
[[ ${ARMBIAN_MIRROR} != *armbian.hosthatch* ]] && break
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user