fix: script: ignore package lists not ending with .list and .group

This commit is contained in:
2026-06-11 17:16:07 +08:00
parent c1db7d4062
commit bbf67874a0
+2 -2
View File
@@ -100,9 +100,9 @@ install_packages() {
execute_script_dir "${line}/post.d" "${1}"
fi
elif [ -f "${actualpath}" ]; then
if echo "${line}" | grep ".*.list" > /dev/null; then
if echo "${line}" | grep ".*.list$" > /dev/null; then
install_package_list "${line}"
elif echo "${line}" | grep ".*.group" > /dev/null; then
elif echo "${line}" | grep ".*.group$" > /dev/null; then
install_package_group "${line}"
else
logw "Unsupported package list, ignoring ${line}"