element-web-patches/reactions/fetch-latest-format.sh
2022-03-31 17:12:23 +01:00

7 lines
240 B
Bash
Executable File

#!/bin/sh
base="https://raw.githubusercontent.com/milesj/emojibase/master/packages/data/en"
for file in compact.raw.json data.raw.json; do
echo "$file:"
curl -sf "$base/$file" | jq '.[] | select(.hexcode == "2721")' || exit $?
done