summaryrefslogtreecommitdiff
path: root/parabola-mirror-repos
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:51:05 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:51:05 -0300
commit91edb43756b78c2233df8c17f32406b69dd5963c (patch)
tree52ddda323a39ba32e5f6c1244ab9edef39776fd8 /parabola-mirror-repos
parent93d31cda4022574685a015d737e5cae341b40509 (diff)
parabola-mirror-repos: Variable name to lowercase
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
{