Update cmurl.sh

This commit is contained in:
tianyu 2015-01-24 14:33:52 +08:00
parent 31bdfac5d4
commit 53c24c488b
1 changed files with 14 additions and 0 deletions

View File

@ -25,8 +25,20 @@ if [ ! -d "$DIRECTORY" ];then
exit 0
fi
if [ -f "$DIRECTORY/$ZIP.done" ];then
echo "UPLOADED"
exit 0
fi
cd $DIRECTORY
touch none.done
for file in *.done;do
echo "REMOVE $file"
rm $file
done
wget $URL > $ZIP.wget.log 2>&1
md5sum $ZIP > $ZIP.md5
@ -45,5 +57,7 @@ if [ -f "$DIRECTORY/$ZIP.wget.log" ];then
rm "$DIRECTORY/$ZIP.wget.log"
fi
touch "$DIRECTORY/$ZIP.done"
cd -