From 031f1bc1ca6a1abbf51496e4dd994fc0591fcdb5 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sun, 13 Jun 2021 20:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=9B=9E=E9=80=80ql=20repo?= =?UTF-8?q?=E6=8B=89=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index efcf7e32..44ff8190 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -356,16 +356,16 @@ gen_list_repo() { cd ${repo_path} - local cmd="find ." - local index=0 - for extension in $file_extensions; do - if [[ $index -eq 0 ]]; then - cmd="${cmd} -name \"*.${extension}\"" - else - cmd="${cmd} -o -name \"*.${extension}\"" - fi - let index+=1 - done + local cmd="find . -name *.js" + # local index=0 + # for extension in $file_extensions; do + # 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 files=$(echo "$files" | egrep $path)