fail exit

This commit is contained in:
luoliangyi 2022-08-08 10:10:02 +08:00
parent f7175e286b
commit 6bdc9c6052
1 changed files with 11 additions and 1 deletions

View File

@ -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