From 51133e24ef286085163bd434e5afef2748623a4a Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sun, 13 Jun 2021 19:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=89=E5=8F=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=E7=BC=80=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shell/update.sh b/shell/update.sh index 70e0bddd..efcf7e32 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -357,8 +357,14 @@ gen_list_repo() { cd ${repo_path} local cmd="find ." + local index=0 for extension in $file_extensions; do - cmd="${cmd} -o -name \"*.${extension}\"" + if [[ $index -eq 0 ]]; then + cmd="${cmd} -name \"*.${extension}\"" + else + cmd="${cmd} -o -name \"*.${extension}\"" + fi + let index+=1 done files=$($cmd | sed 's/^..//') if [[ $path ]]; then