android code防止中断sh脚本
bruce@ubuntu:~/aosp$ cat download.sh #!/bin/bash echo "start repo sh" repo sync #first sync android code while [$?!=0]; do echo "sync failed,retry sync" sleep 3 repo sync #try again echo 2 second done
chmod +x download.sh
bruce@ubuntu:~/aosp$ cat download.sh #!/bin/bash echo "start repo sh" repo sync #first sync android code while [$?!=0]; do echo "sync failed,retry sync" sleep 3 repo sync #try again echo 2 second done
chmod +x download.sh