sed text file
This commit is contained in:
parent
c31ed036e3
commit
ff1cd3cff1
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue