replace some tabs
This commit is contained in:
parent
1d92941420
commit
6a711f4771
1 changed files with 11 additions and 11 deletions
|
@ -48,20 +48,20 @@ prepare_transfer(){
|
|||
}
|
||||
|
||||
sync_dir(){
|
||||
cont=1
|
||||
max_cont=10
|
||||
cont=1
|
||||
max_cont=10
|
||||
prepare_transfer "$1"
|
||||
msg "Start upload [%s] to [%s] ..." "$1" "${project}"
|
||||
while [[ $cont -le $max_cont ]]; do
|
||||
rsync ${rsync_args[*]} ${src_dir}/ ${url}/${target_dir}/
|
||||
if [[ $? != 0 ]]; then
|
||||
cont=$(($cont + 1))
|
||||
msg "Failed to upload [%s] now try again: try $cont of $max_cont" "$1"
|
||||
sleep 2
|
||||
else
|
||||
cont=$(($max_cont + 1))
|
||||
msg "Done upload [%s]" "$1"
|
||||
show_elapsed_time "${FUNCNAME}" "${timer_start}"
|
||||
fi
|
||||
if [[ $? != 0 ]]; then
|
||||
cont=$(($cont + 1))
|
||||
msg "Failed to upload [%s] now try again: try $cont of $max_cont" "$1"
|
||||
sleep 2
|
||||
else
|
||||
cont=$(($max_cont + 1))
|
||||
msg "Done upload [%s]" "$1"
|
||||
show_elapsed_time "${FUNCNAME}" "${timer_start}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue