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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user