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

chore: auto format code

This commit is contained in:
Tw93
2025-12-28 11:39:34 +00:00
parent da1b5cb8d4
commit 66ad3b34ee
4 changed files with 14 additions and 14 deletions

View File

@@ -186,12 +186,12 @@ safe_sudo_find_delete() {
local type_filter="${4:-f}"
# Validate base directory (use sudo for permission-restricted dirs)
if ! sudo test -d "$base_dir" 2>/dev/null; then
if ! sudo test -d "$base_dir" 2> /dev/null; then
debug_log "Directory does not exist (skipping): $base_dir"
return 0
fi
if sudo test -L "$base_dir" 2>/dev/null; then
if sudo test -L "$base_dir" 2> /dev/null; then
log_error "Refusing to search symlinked directory: $base_dir"
return 1
fi