update android.sh

This commit is contained in:
tuna-mirror-server 2015-09-02 22:43:06 +08:00
parent 1c2d8a9d3e
commit 3776f11057

View File

@ -5,12 +5,14 @@ function sync_android() {
/usr/local/bin/android-repo sync -f
}
function update_server_info() {
function update_repo_config() {
for repo in $(find $TUNASYNC_WORKING_DIR -type d -not -path "*/.repo/*" -name "*.git")
do
cd $repo
git update-server-info
echo $repo
git config pack.threads 1
done
}
sync_android
update_repo_config