mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 14:43:39 +00:00
chore: auto format code
This commit is contained in:
@@ -191,7 +191,10 @@ remove_apps_from_dock() {
|
|||||||
|
|
||||||
local url
|
local url
|
||||||
url=$(/usr/libexec/PlistBuddy -c "Print :persistent-apps:$i:tile-data:file-data:_CFURLString" "$plist" 2> /dev/null || echo "")
|
url=$(/usr/libexec/PlistBuddy -c "Print :persistent-apps:$i:tile-data:file-data:_CFURLString" "$plist" 2> /dev/null || echo "")
|
||||||
[[ -z "$url" ]] && { ((i++)); continue; }
|
[[ -z "$url" ]] && {
|
||||||
|
((i++))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
# Match by full path only to avoid removing apps with the same label.
|
# Match by full path only to avoid removing apps with the same label.
|
||||||
if [[ -n "$full_path" && "$url" == *"$full_path"* ]]; then
|
if [[ -n "$full_path" && "$url" == *"$full_path"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user