Commit 6a711f47 authored by Bernhard Landauer's avatar Bernhard Landauer

replace some tabs

parent 1d929414
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment