fix: exclude dependency files from scheduled tasks when pulling subscriptions

This commit is contained in:
xp9477 2026-03-22 12:37:45 +08:00
parent 07bf0c705b
commit cf3fe312b7

View File

@ -397,6 +397,10 @@ 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
files=$(echo "$files" | egrep -v "$dependence")
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}"