replace some tabs

This commit is contained in:
Bernhard Landauer 2018-04-15 02:28:18 +02:00
parent 1d92941420
commit 6a711f4771

View file

@ -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
}