1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 16:49:41 +00:00

Fix unrelated test failures

Fixed WHITELIST_PATTERNS unbound variable error in lib/core/app_protection.sh
Updated clean_empty_library_items to match current behavior
This commit is contained in:
Jack Phallen
2026-01-14 09:29:05 -05:00
parent d884a268e8
commit 9f441eea86
2 changed files with 7 additions and 2 deletions

View File

@@ -12,6 +12,11 @@ readonly MOLE_APP_PROTECTION_LOADED=1
_MOLE_CORE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
[[ -z "${MOLE_BASE_LOADED:-}" ]] && source "$_MOLE_CORE_DIR/base.sh"
# Declare WHITELIST_PATTERNS if not already set (used by is_path_whitelisted)
if ! declare -p WHITELIST_PATTERNS &>/dev/null; then
declare -a WHITELIST_PATTERNS=()
fi
# Application Management
# Critical system components protected from uninstallation