Refactor dependency file filtering in update.sh

This commit is contained in:
xp9477 2026-03-31 20:23:45 +08:00 committed by GitHub
parent cf3fe312b7
commit 7aa33c9374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -397,10 +397,9 @@ gen_list_repo() {
if [[ $blackword ]]; then if [[ $blackword ]]; then
files=$(echo "$files" | egrep -v "$blackword") files=$(echo "$files" | egrep -v "$blackword")
fi fi
# Filter out dependency files from the scripts list if [[ $dependence ]]; then
if [[ $dependence ]]; then
files=$(echo "$files" | egrep -v "$dependence") files=$(echo "$files" | egrep -v "$dependence")
fi fi
cp -f $file_notify_js "${dir_scripts}/${uniq_path}" cp -f $file_notify_js "${dir_scripts}/${uniq_path}"
cp -f $file_notify_py "${dir_scripts}/${uniq_path}" cp -f $file_notify_py "${dir_scripts}/${uniq_path}"