#!/bin/bash echo "================start repo sync====================" repo sync -j5 while [ $? = 1 ]; do echo "====================sync failed, re-sync again=======" sleep 3 repo sync -j5 done
#!/bin/bash echo "================start repo sync====================" repo sync -j5 while [ $? = 1 ]; do echo "====================sync failed, re-sync again=======" sleep 3 repo sync -j5 done
转载于:https://www.cnblogs.com/sn-dnv-aps/p/3330251.html