From 3c770caac9f3567c8c58299b53ec96b23a9aa04e Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Wed, 27 Nov 2024 17:12:12 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9gen=5Ffs=5Fotapkg=5Fsingleuser?= =?utf8?q?.sh=20=E8=A7=A3=E5=86=B3=E6=B2=A1=E6=9C=89file.bin=E8=B5=84?= =?utf8?q?=E6=BA=90=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95=E5=81=9Aota?= =?utf8?q?=E5=8C=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/scripts/gen_fs_otapkg_singleuser.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/scripts/gen_fs_otapkg_singleuser.sh b/tools/scripts/gen_fs_otapkg_singleuser.sh index 33014fca3..ce29474cd 100644 --- a/tools/scripts/gen_fs_otapkg_singleuser.sh +++ b/tools/scripts/gen_fs_otapkg_singleuser.sh @@ -30,6 +30,20 @@ BACKUPDIR_HOME=$HOMEDIR/../PATCHES/$(basename $HOMEDIR)_FSOTA_${DATE} rm -rf $BACKUPDIR_HOME mkdir -p $BACKUPDIR_HOME + +if ! [ -e $NEWVERSION/bin/file.bin ] +then +echo " " +echo !!!!!!!!!!!!! no $NEWVERSION/bin/file.bin skip compare resource files. +exit 0 +fi +if ! [ -e $OLDVERSION/bin/file.bin ] +then +echo " " +echo !!!!!!!!!!!!! no $OLDVERSION/bin/file.bin skip compare resource files. +echo +exit 0 +fi python $UNYAFFS_SCRIPT $NEWVERSION/bin/file.bin $BACKUPDIR_HOME/new if [ $? != 0 ] then -- 2.17.1