]> gitweb.factorcode.org Git - factor.git/commitdiff
build.sh: final two local vars
authorCat Stevens <catb0t@protonmail.ch>
Sun, 19 Aug 2018 11:30:03 +0000 (07:30 -0400)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 21 Aug 2018 18:36:29 +0000 (11:36 -0700)
build.sh

index 4b47ca940f232abdfb8c644e4b4e972dee7af0cb..b4854cc2c907c2883a8fc2144b001ac324c74099 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -590,9 +590,9 @@ update_boot_image() {
     $DELETE temp/staging.*.image > /dev/null 2>&1
     if [[ -f $BOOT_IMAGE ]] ; then
         get_url $CHECKSUM_URL
-        factorcode_md5=$(cat checksums.txt | grep $BOOT_IMAGE | cut -f2 -d' ')
+        local factorcode_md5=$(cat checksums.txt | grep $BOOT_IMAGE | cut -f2 -d' ')
         set_md5sum
-        disk_md5=$($MD5SUM $BOOT_IMAGE | cut -f1 -d' ')
+        local disk_md5=$($MD5SUM $BOOT_IMAGE | cut -f1 -d' ')
         $ECHO "Factorcode md5: $factorcode_md5";
         $ECHO "Disk md5: $disk_md5";
         if [[ "$factorcode_md5" == "$disk_md5" ]] ; then