diff --git a/build.sh b/build.sh index 6d9c6d9..89ba424 100755 --- a/build.sh +++ b/build.sh @@ -165,7 +165,7 @@ sed -i "3s/.*/$Architecture/g" dpkg/$syspath/$oem/DEBIAN/control cp dpkg/60-sane.rules dpkg/$syspath/$oem/etc/udev/rules.d/60-"$oem"sane.rules if [ $? -ne 0 ];then - echo "没有这个60-sane.rule " + echo "not find:60-sane.rule " exit 1 fi @@ -228,8 +228,18 @@ else cp release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/apps/$dpkgpath/ cp dpkg/$syspath/$oem/opt/apps/$dpkgpath/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1 fi +fi + +if [ $? -ne 0 ];then + echo "not find:libsane-"$oem"sane.so" + exit 1 fi +find release/$syspath/$cpu/ -name "*SCAN" +if [ $? -ne 0 ];then + echo "not find:APP" + exit 1 +fi chmod 755 dpkg -R chmod 755 backup -R