blob: 6fa8570dca661229917a5932dd47457ec529389d (
plain)
1
2
3
4
5
6
7
8
|
#!/usr/bin/env sh
sticker=$(rmpc sticker get "$FILE" "playCount" | jq -r '.value')
if [ -z "$sticker" ]; then
rmpc sticker set "$FILE" "playCount" "1"
else
rmpc sticker set "$FILE" "playCount" "$((sticker + 1))"
fi
|