#!/bin/bash
while true
do
if repo sync
then
echo "repo sync successfully."
break
else
echo "repo sync failed. retry..."
repo sync
fi
done
while true
do
if repo sync
then
echo "repo sync successfully."
break
else
echo "repo sync failed. retry..."
repo sync
fi
done