]> gitweb.factorcode.org Git - factor.git/commitdiff
build.sh: Use the branch for downloading images, which was the entire point of these...
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 9 Dec 2017 09:38:23 +0000 (09:38 +0000)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 9 Dec 2017 09:38:23 +0000 (09:38 +0000)
build.sh

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