From 31cd7c4007c14f745c823694a2ec2aaa4df7ec78 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 13 Nov 2021 17:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E9=83=A8=E4=BE=9D=E8=B5=96=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E7=B3=BB=E7=BB=9F=E7=9B=B4=E6=8E=A5=E5=88=86=E5=8F=91?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=96=87=E4=BB=B6js=E5=92=8Cpy=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index 4d60fb60..bd64927a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -392,14 +392,16 @@ gen_list_repo() { files=$(echo "$files" | egrep -v $blackword) fi if [[ $dependence ]]; then - cd ${dir_scripts} - depInScripts=$(eval $cmd | sed 's/^..//' | egrep -v $uniq_path | egrep $dependence) - for dep in ${depInScripts}; do - file_path=$(dirname $dep) - [[ ! $file_path =~ "/" ]] && file_path="" - make_dir "${dir_scripts}/${uniq_path}/${file_path#*/}" - cp -f $dep "${dir_scripts}/${uniq_path}/${file_path#*/}" - done + # cd ${dir_scripts} + # depInScripts=$(eval $cmd | sed 's/^..//' | egrep -v $uniq_path | egrep $dependence) + # for dep in ${depInScripts}; do + # file_path=$(dirname $dep) + # [[ ! $file_path =~ "/" ]] && file_path="" + # make_dir "${dir_scripts}/${uniq_path}/${file_path#*/}" + # cp -f $dep "${dir_scripts}/${uniq_path}/${file_path#*/}" + # done + cp -f $file_notify_js "${dir_scripts}/${uniq_path}" + cp -f $file_notify_py "${dir_scripts}/${uniq_path}" cd ${repo_path} results=$(eval $cmd | sed 's/^..//' | egrep $dependence)