Skip to content

Instantly share code, notes, and snippets.

@zhgqthomas
Created August 10, 2016 12:31
Show Gist options
  • Save zhgqthomas/ed860abe3dc8c8384447aed95011a35e to your computer and use it in GitHub Desktop.
Save zhgqthomas/ed860abe3dc8c8384447aed95011a35e to your computer and use it in GitHub Desktop.
#!/bin/bash
#FileName get-android.sh
PATH=./bin:$PATH
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-5.1.1_r38
repo sync
while [ $? = 1 ]; do
echo "============ sync failed, re-sync again ==============="
sleep 3
repo sync
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment