diff --git a/build.sh b/build.sh index 326c4c1..af58bad 100755 --- a/build.sh +++ b/build.sh @@ -382,9 +382,10 @@ rm dpkg/$dpkgtype/$oem/etc/udev/rules.d/* cp dpkg/60-sane.rules dpkg/$dpkgtype/$oem/etc/udev/rules.d/60-"$oem"sane.rules -if [ "${oem:0-2:2}" != "so" ] || [ "${oem:0-3:3}" != "web" ]; +if [ "${oem:0-2:2}" != "so" ] && [ "${oem:0-3:3}" != "web" ]; then #创建sane的文件目录 //必须保证这一步成功 + exit 1 rm -rf dpkg/$dpkgtype/$oem/usr/lib/* if [ $? -ne 0 ];then echo "del sane file fail"