mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 23:40:09 +00:00
refactor: Update shell arithmetic increment syntax from ((var++)) || true to var=$((var + 1)) across various scripts.
This commit is contained in:
@@ -163,7 +163,7 @@ remove_apps_from_dock() {
|
||||
local url
|
||||
url=$(/usr/libexec/PlistBuddy -c "Print :persistent-apps:$i:tile-data:file-data:_CFURLString" "$plist" 2> /dev/null || echo "")
|
||||
[[ -z "$url" ]] && {
|
||||
((i++)) || true
|
||||
i=$((i + 1))
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ remove_apps_from_dock() {
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
((i++)) || true
|
||||
i=$((i + 1))
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user