Permalink
Browse files

Check for missing updater-script

  • Loading branch information...
1 parent 6e24dcf commit 92dea0d9517e6c3fdead0f0da9d9170662576164 @dsixda committed Dec 13, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 scripts/check_which_update_binary
@@ -13,6 +13,14 @@ cd WORKING_*
cd META-INF/com/google/android
update_dir=`pwd`
+if [ ! -e updater-script ]
+then
+ echo
+ echo "Error: No updater-script found!"
+ cd ../../../../..
+ exit 0
+fi
+
if [ -e update-binary.orig ]
then
echo
@@ -59,7 +67,8 @@ else
cp -vf ../../../../../tools/update_files/emmc-update-binary update-binary
- else
+
+ else
#
# Three args for mount, but no MTD or assert

0 comments on commit 92dea0d

Please sign in to comment.