build.sh: Warn if boot image url is nonexistent when falling back to master.

master
Doug Coleman 2020-08-29 18:22:05 -05:00
parent 13b366e88b
commit 87cce0ba6a
1 changed files with 2 additions and 0 deletions

View File

@ -628,6 +628,8 @@ set_boot_image_vars() {
CHECKSUM_URL="$url" CHECKSUM_URL="$url"
BOOT_IMAGE_URL="http://downloads.factorcode.org/images/${CURRENT_BRANCH}/${BOOT_IMAGE}" BOOT_IMAGE_URL="http://downloads.factorcode.org/images/${CURRENT_BRANCH}/${BOOT_IMAGE}"
else else
$ECHO "boot image for branch \`${CURRENT_BRANCH}\` is not on server, trying master instead"
$ECHO " tried nonexistent url: ${url}"
CHECKSUM_URL="http://downloads.factorcode.org/images/master/checksums.txt" CHECKSUM_URL="http://downloads.factorcode.org/images/master/checksums.txt"
BOOT_IMAGE_URL="http://downloads.factorcode.org/images/master/${BOOT_IMAGE}" BOOT_IMAGE_URL="http://downloads.factorcode.org/images/master/${BOOT_IMAGE}"
fi fi