From 91edb43756b78c2233df8c17f32406b69dd5963c Mon Sep 17 00:00:00 2001 From: Esteban Carnevale Date: Fri, 7 Nov 2014 13:51:05 -0300 Subject: parabola-mirror-repos: Variable name to lowercase --- parabola-mirror-repos | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'parabola-mirror-repos') 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 { -- cgit v1.2.3-54-g00ecf