mirror of
https://github.com/tw93/Mole.git
synced 2026-03-23 17:00:08 +00:00
fix: harden cleanup path validation
This commit is contained in:
@@ -500,7 +500,7 @@ clean_orphaned_system_services() {
|
||||
if [[ "$orphan_file" == *.plist ]]; then
|
||||
sudo launchctl unload "$orphan_file" 2> /dev/null || true
|
||||
fi
|
||||
if sudo rm -f "$orphan_file" 2> /dev/null; then
|
||||
if safe_sudo_remove "$orphan_file"; then
|
||||
debug_log "Removed orphaned service: $orphan_file"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user