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

 

posted @ 2019-08-21 21:36  _**  阅读(201)  评论(0编辑  收藏  举报