Files
wechat-dump/lib/static/smileys/down2.sh
T
2014-12-24 22:54:22 +08:00

17 lines
443 B
Bash
Executable File

#!/bin/bash -e
# File: down2.sh
# Date: Wed Dec 24 22:31:37 2014 +0800
# Author: Yuxin Wu <[email protected]>
# This script is used to download unicode emoji
emojis=$(cat ../unicode-smiley.json | grep -o '\\ue[^"]*' | cut -c 3-)
for i in $emojis; do
size=$(wc -c "$i.png" 2>/dev/null | cut -f 1 -d ' ')
if [[ -n "$size" && $size -ge 0 ]]; then
echo "File $i Already There!"
else
wget http://www.easyapns.com/emoji/$i.png &
fi
done