Parcourir la source

Merge pull request #8 from ryanschwartz/master

Add version identification
Jakob Borg il y a 11 ans
Parent
commit
c1119910d5
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      platform-upgrade

+ 8 - 0
platform-upgrade

@@ -71,6 +71,14 @@ else
         echo " OK"
 fi
 
+echo -n "Marking release version..."
+if ! echo $version > $platform_dir/VERSION ; then
+        echo " failed"
+        exit -1
+else
+        echo " OK"
+fi
+
 echo -n "Updating platform on boot device..."
 if ! rsync -a "$platform_dir/" usb/platform.new/ ; then
         echo " failed"