Bugfix - fixing wrong value extraction

Closes https://github.com/armbian/build/issues/2672
This commit is contained in:
Igor Pecovnik
2021-03-02 10:55:22 +01:00
parent 61ba606f4a
commit 7cd178f64a

View File

@@ -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