tunasync/scripts/android.sh
tuna-mirror-server 3776f11057 update android.sh
2015-09-02 22:43:06 +08:00

19 lines
322 B
Bash
Executable File

#!/bin/bash
function sync_android() {
cd $TUNASYNC_WORKING_DIR
/usr/local/bin/android-repo sync -f
}
function update_repo_config() {
for repo in $(find $TUNASYNC_WORKING_DIR -type d -not -path "*/.repo/*" -name "*.git")
do
cd $repo
echo $repo
git config pack.threads 1
done
}
sync_android
update_repo_config