1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine script

This commit is contained in:
winlin 2014-11-27 12:51:33 +08:00
parent b825ea62f9
commit c49981ed6f

View file

@ -50,11 +50,11 @@ function sync_push()
for ((;;)); do for ((;;)); do
git push $* git push $*
ret=$?; if [[ 0 -ne $ret ]]; then ret=$?; if [[ 0 -ne $ret ]]; then
failed_msg "Retry for failed: $*" failed_msg "Retry for failed: git push $*"
sleep 3 sleep 3
continue continue
else else
ok_msg "Success: $*" ok_msg "Success: git push $*"
fi fi
break break
done done