#!/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
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