diff --git a/build.sh b/build.sh index 18aed16..362395e 100755 --- a/build.sh +++ b/build.sh @@ -237,6 +237,10 @@ if [ -d "dpkg/$syspath/$oem/usr/lib" ];then cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1 fi + if [ $? != 0 ];then + echo "-----------------cp libsane fail ,not find libsane-----------------" + exit 1 +fi echo "11111111111111111111111111111111111111111111111111111" sleep 3 fi