mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 20:19:45 +00:00
refactor: enhance uninstall safety and fix dock removal
- Add symlink/bundle_id/BOM validation to prevent injection attacks - Fix Dock removal for /Applications symlink (use pwd not pwd -P) - Fix brew uninstall test hanging (skip sudo in non-interactive mode) - Remove unused SENSITIVE_DATA_REGEX
This commit is contained in:
@@ -133,7 +133,7 @@ remove_apps_from_dock() {
|
||||
fi
|
||||
|
||||
if [[ -e "$app_path" ]]; then
|
||||
if full_path=$(cd "$(dirname "$app_path")" 2>/dev/null && pwd -P); then
|
||||
if full_path=$(cd "$(dirname "$app_path")" 2>/dev/null && pwd); then
|
||||
full_path="$full_path/$(basename "$app_path")"
|
||||
else
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user