build.sh: Use the branch for downloading images, which was the entire point of these patches.

factor-shell
Doug Coleman 2017-12-09 09:38:23 +00:00
parent a2facf56aa
commit 454efe0942
1 changed files with 5 additions and 4 deletions

View File

@ -565,11 +565,12 @@ find_branch() {
} }
checksum_url() { checksum_url() {
branch=$(current_git_branch) find_branch
echo "http://downloads.factorcode.org/images/$branch/checksums.txt" echo "http://downloads.factorcode.org/images/$CURRENT_BRANCH/checksums.txt"
} }
update_boot_images() { update_boot_images() {
find_branch
$ECHO "Deleting old images..." $ECHO "Deleting old images..."
$DELETE checksums.txt* > /dev/null 2>&1 $DELETE checksums.txt* > /dev/null 2>&1
# delete boot images with one or two characters after the dot # delete boot images with one or two characters after the dot
@ -594,8 +595,8 @@ update_boot_images() {
} }
boot_image_url() { boot_image_url() {
branch=$(current_git_branch) find_branch
echo "http://downloads.factorcode.org/images/$branch/$BOOT_IMAGE" echo "http://downloads.factorcode.org/images/$CURRENT_BRANCH/$BOOT_IMAGE"
} }
get_boot_image() { get_boot_image() {