1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-06 18:55:37 +00:00

Test case update

This commit is contained in:
Tw93
2025-11-15 13:40:43 +08:00
parent cccc41990e
commit f7dff3b798
7 changed files with 32 additions and 133 deletions

View File

@@ -101,7 +101,11 @@ check_startup_items() {
)
for dir in "${dirs[@]}"; do
[[ -d "$dir" ]] && count=$((count + $(ls -1 "$dir" 2> /dev/null | wc -l)))
if [[ -d "$dir" ]]; then
local dir_count
dir_count=$(find "$dir" -maxdepth 1 -type f -name "*.plist" 2> /dev/null | wc -l)
count=$((count + dir_count))
fi
done
if [[ $count -gt 5 ]]; then