您的位置:首页 > 移动开发 > Android开发

防止android源码下载异常的脚本

2012-03-17 15:00 183 查看
#!/bin/bash

if [ ! -f repo ];then

# download repo to $PWD

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ./repo

fi

chmod a+x ./repo

PATH=.:$PATH

repo init -u git://android.git.kernel.org/platform/manifest.git -b master

repo sync

while [ $? = 1 ]; do

echo "==================repo sync failed, do it again"

sleep 3

repo sync

done

echo "===================sync done"

exit 0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: