summaryrefslogtreecommitdiff
path: root/parabola-mirror-repos
diff options
context:
space:
mode:
Diffstat (limited to 'parabola-mirror-repos')
-rwxr-xr-xparabola-mirror-repos12
1 files changed, 6 insertions, 6 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos
index 10835b6..310e396 100755
--- a/parabola-mirror-repos
+++ b/parabola-mirror-repos
@@ -28,7 +28,7 @@ log_tmp="$(mktemp -p /var/tmp)"
[[ ! ${BW_LIMIT} ]] && \
: ${BW_LIMIT:=1300} # KB/s
: ${log_file:=${script_filename}.log}
-: ${OPTIONS:=-rltvH --no-p --no-g --max-delete=$max_delete --exclude=.* --bwlimit=${BW_LIMIT} --no-motd --chmod=Dug=srwx,Fug=rw --log-file=${log_tmp}}
+: ${options:=-rltvH --no-p --no-g --max-delete=$max_delete --exclude=.* --bwlimit=${BW_LIMIT} --no-motd --chmod=Dug=srwx,Fug=rw --log-file=${log_tmp}}
: ${oldest_version:=100} # delete versions older than this version
: ${link_dest[0]:=${base_dir}/archlinux}
#: ${link_dest[1]:=${base_dir}/parabola.secondary_mirror.tmp}
@@ -158,7 +158,7 @@ local_useful=0
date_exact=""
first_run=0
if [[ ${BW_LIMIT} ]] ; then
- OPTIONS+=" --bwlimit=${BW_LIMIT}"
+ options+=" --bwlimit=${BW_LIMIT}"
fi
path_list_array=(${path_list})
repos_array=(${repos})
@@ -192,7 +192,7 @@ elif [[ $# -gt 1 ]] ; then
fi
if [[ $terminal == 1 ]] ; then
- OPTIONS+=" --progress"
+ options+=" --progress"
fi
for i in ${!link_dest[@]}; do
@@ -336,7 +336,7 @@ if [[ ${db_and_symlinks_update} == 1 ]] ; then
echo "=> Starting to synchronize repository directories (symlinks and db.* files)"
-rsync $OPTIONS --stats --exclude 'mips64el' --delete-after --safe-links "${link_dest_option[@]}" --link-dest="$local_dir" "${repos_array[@]/#/${server}/}" "$local_dir".tmp || error " => ERROR: rsync terminated with an error code: $?"
+rsync $options --stats --exclude 'mips64el' --delete-after --safe-links "${link_dest_option[@]}" --link-dest="$local_dir" "${repos_array[@]/#/${server}/}" "$local_dir".tmp || error " => ERROR: rsync terminated with an error code: $?"
fi
@@ -354,13 +354,13 @@ _wait_log_tmp
if [[ ${pools_update} == 1 ]] ; then
- rsync $OPTIONS --stats --exclude '*-mips64el.pkg.tar.*' --safe-links --files-from="$remote_pool_files" "${link_dest_option[@]}" --link-dest="$local_dir" $server "${local_dir}".tmp
+ rsync $options --stats --exclude '*-mips64el.pkg.tar.*' --safe-links --files-from="$remote_pool_files" "${link_dest_option[@]}" --link-dest="$local_dir" $server "${local_dir}".tmp
fi # end "if [[ ${pools_update} == 1 ]]"
if [[ ${path_list} ]] ; then
echo "=> Synchronizing extra paths"
- rsync $OPTIONS --stats --safe-links "${link_dest_option[@]/%//$path}" --link-dest="$local_dir"/"$path" ${path_list_array[@]/#/${server}/} "${local_dir}".tmp/ || error " => ERROR: rsync terminated with an error code: $?"
+ rsync $options --stats --safe-links "${link_dest_option[@]/%//$path}" --link-dest="$local_dir"/"$path" ${path_list_array[@]/#/${server}/} "${local_dir}".tmp/ || error " => ERROR: rsync terminated with an error code: $?"
fi
{