Wonfee / qqwry

Automatically exported from code.google.com/p/qqwry
0 stars 0 forks source link

a little fix #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
对nali-update增加一个关于文件大小的判断

local_size=$(du -b "$qqwry_dat_local_path"|grep -Po '\d+')
remote_size=$(curl -s --insecure -I "$qqwry_dat_url"|grep -Po 
'(?<=Content-Length: )\d+')

if [ $local_size -eq $remote_size ]
then
    echo QQWry.Dat already installed and latest version.
    exit 0
fi

Original issue reported on code.google.com by dn8...@gmail.com on 7 Feb 2014 at 5:52