From 7aa33c9374a79b4fff1ac3dd15102e3e9c6ac86d Mon Sep 17 00:00:00 2001 From: xp9477 <947760133@qq.com> Date: Tue, 31 Mar 2026 20:23:45 +0800 Subject: [PATCH] Refactor dependency file filtering in update.sh --- shell/update.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index bffe0bea..4e09689a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -397,10 +397,9 @@ gen_list_repo() { if [[ $blackword ]]; then files=$(echo "$files" | egrep -v "$blackword") fi -# Filter out dependency files from the scripts list -if [[ $dependence ]]; then - files=$(echo "$files" | egrep -v "$dependence") -fi + if [[ $dependence ]]; then + files=$(echo "$files" | egrep -v "$dependence") + fi cp -f $file_notify_js "${dir_scripts}/${uniq_path}" cp -f $file_notify_py "${dir_scripts}/${uniq_path}"