diff --git a/bin/build.sh b/bin/build.sh index 3f8e024..8c7c22b 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -288,7 +288,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 perl -i -pe 's/[一-龥()“”,。?!]~·]//g' {} + + find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} + echo "Replace all chinese character." chmod +x ${DebBuildDir}/usr/local/omc/bin sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control