sed text file

This commit is contained in:
weyu 2025-04-24 16:19:24 +08:00
parent c31ed036e3
commit ff1cd3cff1
2 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ cycle_sed(){
# 循环依次处理可能包含外部链接的文件,并进行替换
for file in `cat /tmp/sed-file-list`
do
file -b $file |grep "ASCII text"
file -b $file |grep "text"
if [ $? -ne 0 ];then
echo "not ASCII text, Just Skip: $file"
continue

View File

@ -49,7 +49,7 @@ save_return(){
cd project_dir
if cat .git/config |grep '/crossplane/docs.git' ;then
echo "匹配到 crossplane"
log_info "匹配到 crossplane"
before_build
build
cycle_sed "./output"