This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
byte=`curl -s https://packagecontrol.io/channel_v3.json | wc -c` | |
if [ $byte -gt 2000000 ]; then | |
echo "OK! mirror it" | |
cp channel_v3.json channel_v3.json-old | |
curl -s https://packagecontrol.io/channel_v3.json -o channel_v3.json | |
cmp -s channel_v3.json channel_v3.json-old | |
if [ $? == 0 ]; then | |
echo "We don't need update now" |