projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c32bf0
)
修改gen_fs_otapkg_singleuser.sh 解决没有file.bin资源文件无法做ota包的问题
1470/1
1470/head
1471/target/1
author
SnickerSun
<snickersun@163.com>
Wed, 27 Nov 2024 09:12:12 +0000
(17:12 +0800)
committer
SnickerSun
<snickersun@163.com>
Wed, 27 Nov 2024 09:12:12 +0000
(17:12 +0800)
tools/scripts/gen_fs_otapkg_singleuser.sh
patch
|
blob
|
history
diff --git
a/tools/scripts/gen_fs_otapkg_singleuser.sh
b/tools/scripts/gen_fs_otapkg_singleuser.sh
index
33014fc
..
ce29474
100644
(file)
--- 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