diff --git a/bin/build.sh b/bin/build.sh index 1530ba7..b0f309e 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -310,7 +310,7 @@ case "${pkgtype}" in cp -rf ${BuildDir}/* ${DebBuildDir}/ cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static # replace Chinese character - find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} + + find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec perl -i -pe 's/[一-龥()“”,。?!]~·]//g' {} + echo "Replace all chinese character." chmod +x ${DebBuildDir}/usr/local/omc/bin sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control